mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
rose: sanity check CHECK_BOUNDS instruction
This commit is contained in:
parent
8d31607556
commit
3e96cd48ef
@ -3766,6 +3766,10 @@ void makeRoleCheckBounds(const RoseBuildImpl &build, RoseVertex v,
|
||||
max_bound = MAX_OFFSET;
|
||||
}
|
||||
|
||||
// This instruction should be doing _something_ -- bounds should be tighter
|
||||
// than just {length, inf}.
|
||||
assert(min_bound > lit_length || max_bound < MAX_OFFSET);
|
||||
|
||||
auto ri = RoseInstruction(ROSE_INSTR_CHECK_BOUNDS, JumpTarget::NEXT_BLOCK);
|
||||
ri.u.checkBounds.min_bound = min_bound;
|
||||
ri.u.checkBounds.max_bound = max_bound;
|
||||
|
Loading…
x
Reference in New Issue
Block a user