Commit 0a362f12 authored by Nikita Popov's avatar Nikita Popov
Browse files

[IR] Mark mul and ashr const exprs as undesirable

These will no longer be created by default, but can still be
created explicitly.
parent 2c4f938f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: