From 222c9047d61961db9c6b19fed5ca49829223fd33 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Thu, 27 Feb 2020 05:45:13 +0100 Subject: CSE2 now uses is_trivial_op --- backend/CSE2.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/CSE2.v') diff --git a/backend/CSE2.v b/backend/CSE2.v index 1e3bc3b7..19b633b0 100644 --- a/backend/CSE2.v +++ b/backend/CSE2.v @@ -525,7 +525,7 @@ Definition transf_instr (fmap : option (PMap.t RB.t)) match instr with | Iop op args dst s => let args' := subst_args fmap pc args in - match find_op_in_fmap fmap pc op args' with + match (if is_trivial_op op then None else find_op_in_fmap fmap pc op args') with | None => Iop op args' dst s | Some src => Iop Omove (src::nil) dst s end -- cgit