Skip to content

Commit

Permalink
Revert "[IR] Mark mul and ashr const exprs as undesirable"
Browse files Browse the repository at this point in the history
This reverts commit 0a362f1.

This causes test failures in flang.
  • Loading branch information
nikic committed Nov 7, 2023
1 parent d1ee26b commit c82cc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/IR/Constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2133,13 +2133,13 @@ bool ConstantExpr::isDesirableBinOp(unsigned Opcode) {
case Instruction::FRem:
case Instruction::And:
case Instruction::Or:
case Instruction::Mul:
case Instruction::AShr:
return false;
case Instruction::Add:
case Instruction::Sub:
case Instruction::Mul:
case Instruction::Shl:
case Instruction::LShr:
case Instruction::AShr:
case Instruction::Xor:
return true;
default:
Expand Down

0 comments on commit c82cc62

Please sign in to comment.