diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-02-27 05:45:13 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-02-27 05:45:13 +0100 |
commit | 222c9047d61961db9c6b19fed5ca49829223fd33 (patch) | |
tree | 70350802e58091cf90560060f1775148124bc0d0 /backend/CSE2.v | |
parent | a5e20ecb933a1dc12bae3e4eeb330e86f13832d8 (diff) | |
download | compcert-kvx-222c9047d61961db9c6b19fed5ca49829223fd33.tar.gz compcert-kvx-222c9047d61961db9c6b19fed5ca49829223fd33.zip |
CSE2 now uses is_trivial_op
Diffstat (limited to 'backend/CSE2.v')
-rw-r--r-- | backend/CSE2.v | 2 |
1 files changed, 1 insertions, 1 deletions
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 |