Skip to content

Commit c82cc62

Browse files
committed
Revert "[IR] Mark mul and ashr const exprs as undesirable"
This reverts commit 0a362f1. This causes test failures in flang.
1 parent d1ee26b commit c82cc62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/Constants.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,13 +2133,13 @@ bool ConstantExpr::isDesirableBinOp(unsigned Opcode) {
21332133
case Instruction::FRem:
21342134
case Instruction::And:
21352135
case Instruction::Or:
2136-
case Instruction::Mul:
2137-
case Instruction::AShr:
21382136
return false;
21392137
case Instruction::Add:
21402138
case Instruction::Sub:
2139+
case Instruction::Mul:
21412140
case Instruction::Shl:
21422141
case Instruction::LShr:
2142+
case Instruction::AShr:
21432143
case Instruction::Xor:
21442144
return true;
21452145
default:

0 commit comments

Comments
 (0)