[PATCH] D141214: [InstCombine] Don't combine smul of i1 type constant one

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 7 23:32:49 PST 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:4999
     case Instruction::Mul:
-      return match(RHS, m_One());
+      return !(RHS->getType()->isIntegerTy(1) && IsSigned) &&
+             match(RHS, m_One());
----------------
What about i1 vectors?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141214/new/

https://reviews.llvm.org/D141214



More information about the llvm-commits mailing list