aboutsummaryrefslogtreecommitdiffstats
path: root/backend/CSE2.v
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-01-28 15:24:11 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-01-28 15:24:11 +0100
commit3e15c72f5a5e34ac2e96e77022b2129125abcdd0 (patch)
tree7394fda2104b24e5da78b5202189ad5937dd2418 /backend/CSE2.v
parenta7df9f6f48aa9282cb66b02bb63ca047b01f09b4 (diff)
downloadcompcert-kvx-3e15c72f5a5e34ac2e96e77022b2129125abcdd0.tar.gz
compcert-kvx-3e15c72f5a5e34ac2e96e77022b2129125abcdd0.zip
much better - seems to eliminate CSE not containing loads
Diffstat (limited to 'backend/CSE2.v')
-rw-r--r--backend/CSE2.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/CSE2.v b/backend/CSE2.v
index 07bde1ac..14c6e042 100644
--- a/backend/CSE2.v
+++ b/backend/CSE2.v
@@ -304,7 +304,7 @@ Definition oper1 (op: operation) (dst : reg) (args : list reg)
Definition oper (op: operation) (dst : reg) (args : list reg)
(rel : RELATION.t) :=
- match find_op rel op args with
+ match find_op rel op (List.map (forward_move rel) args) with
| Some r => move r dst rel
| None => oper1 op dst args rel
end.