diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-11-23 17:32:00 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-11-23 17:32:00 +0100 |
commit | 36c82ee8b0ac340a663a3790d70fd200d3f35ef9 (patch) | |
tree | e64899a361c8058cb1c5904df6926c514be7d5bc /kvx/CSE2deps.v | |
parent | 6d9f40cbe20494f6859722962da84a8021007372 (diff) | |
download | compcert-kvx-36c82ee8b0ac340a663a3790d70fd200d3f35ef9.tar.gz compcert-kvx-36c82ee8b0ac340a663a3790d70fd200d3f35ef9.zip |
correction bug #223 sur KVX
Diffstat (limited to 'kvx/CSE2deps.v')
-rw-r--r-- | kvx/CSE2deps.v | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kvx/CSE2deps.v b/kvx/CSE2deps.v index b4b80e2f..c0deacf0 100644 --- a/kvx/CSE2deps.v +++ b/kvx/CSE2deps.v @@ -28,5 +28,8 @@ Definition may_overlap chunk addr args chunk' addr' args' := (base :: nil), (base' :: nil) => if peq base base' then negb (can_swap_accesses_ofs (Ptrofs.unsigned ofs') chunk' (Ptrofs.unsigned ofs) chunk) - else true | _, _, _, _ => true + else true + | (Ainstack ofs), (Ainstack ofs'), _, _ => + negb (can_swap_accesses_ofs (Ptrofs.unsigned ofs') chunk' (Ptrofs.unsigned ofs) chunk) + | _, _, _, _ => true end. |