hot-fix: unnecessary optimization removed

This commit is contained in:
psucien 2024-09-22 19:56:07 +02:00
parent e1d03c35fd
commit fb5bc371cb

View file

@ -353,7 +353,6 @@ void ConstantPropagation(IR::Block& block, IR::Inst& inst) {
return; return;
case IR::Opcode::INotEqual: case IR::Opcode::INotEqual:
FoldWhenAllImmediates(inst, [](u32 a, u32 b) { return a != b; }); FoldWhenAllImmediates(inst, [](u32 a, u32 b) { return a != b; });
FoldBooleanConvert(inst);
return; return;
case IR::Opcode::BitwiseAnd32: case IR::Opcode::BitwiseAnd32:
FoldWhenAllImmediates(inst, [](u32 a, u32 b) { return a & b; }); FoldWhenAllImmediates(inst, [](u32 a, u32 b) { return a & b; });