C++: Add constant analysis for bitwise operations now that these are no longer constant folded by IR construction.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-03-19 16:23:57 +00:00
parent 54262a53c3
commit 458ee13345
2 changed files with 18 additions and 0 deletions

View File

@@ -38,6 +38,12 @@ private int getBinaryInstructionValue(BinaryInstruction instr) {
or
instr instanceof DivInstruction and result = div(left, right)
or
instr instanceof BitOrInstruction and result = bitOr(left, right)
or
instr instanceof BitAndInstruction and result = bitAnd(left, right)
or
instr instanceof BitXorInstruction and result = bitXor(left, right)
or
instr instanceof CompareEQInstruction and result = compareEQ(left, right)
or
instr instanceof CompareNEInstruction and result = compareNE(left, right)