aboutsummaryrefslogtreecommitdiffstats
path: root/src/hls/RTLBlockInstr.v
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-02-03 01:05:32 +0000
committerYann Herklotz <git@yannherklotz.com>2021-02-03 01:05:32 +0000
commit8d5047ca436ba42e9253d24d6b5b2c0c62dd7437 (patch)
treeedb357c24b7c4a50569cdc32e6d4f17f48673ede /src/hls/RTLBlockInstr.v
parent3ddec58aa1ad7d1bd772868d34ab0e11cf8f1ad4 (diff)
downloadvericert-8d5047ca436ba42e9253d24d6b5b2c0c62dd7437.tar.gz
vericert-8d5047ca436ba42e9253d24d6b5b2c0c62dd7437.zip
Fix state generation for if-conversion
Diffstat (limited to 'src/hls/RTLBlockInstr.v')
-rw-r--r--src/hls/RTLBlockInstr.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hls/RTLBlockInstr.v b/src/hls/RTLBlockInstr.v
index 4d02998..345e73e 100644
--- a/src/hls/RTLBlockInstr.v
+++ b/src/hls/RTLBlockInstr.v
@@ -79,7 +79,7 @@ Definition max_reg_instr (m: positive) (i: instr) :=
| RBstore p chunk addr args src =>
fold_left Pos.max args (Pos.max src m)
| RBsetpred c args p =>
- fold_left Pos.max args 1%positive
+ fold_left Pos.max args m
end.
Fixpoint max_reg_cfi (m : positive) (i : cf_instr) :=