C++: Remove redundant SSA branch after IR fix

This commit is contained in:
Jeroen Ketema
2026-01-06 17:40:52 +01:00
parent 3cd9938ebe
commit 063e5d300e

View File

@@ -688,14 +688,9 @@ private module Cached {
conversionFlow(mid, instr, false, _)
)
or
exists(int ind0 |
exists(Operand address |
isDereference(operand.getDef(), address, _) and
isUseImpl(address, base, ind0)
)
or
isUseImpl(operand.getDef().(InitializeParameterInstruction).getAnOperand(), base, ind0)
|
exists(int ind0, Operand address |
isDereference(operand.getDef(), address, _) and
isUseImpl(address, base, ind0) and
ind0 = ind - 1
)
}