We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1ee26b commit c82cc62Copy full SHA for c82cc62
llvm/lib/IR/Constants.cpp
@@ -2133,13 +2133,13 @@ bool ConstantExpr::isDesirableBinOp(unsigned Opcode) {
2133
case Instruction::FRem:
2134
case Instruction::And:
2135
case Instruction::Or:
2136
- case Instruction::Mul:
2137
- case Instruction::AShr:
2138
return false;
2139
case Instruction::Add:
2140
case Instruction::Sub:
+ case Instruction::Mul:
2141
case Instruction::Shl:
2142
case Instruction::LShr:
+ case Instruction::AShr:
2143
case Instruction::Xor:
2144
return true;
2145
default:
0 commit comments