[llvm] [SLP] Enable optimization of freeze instructions (PR #102217)

John McIver via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 14:34:48 PDT 2024


================
@@ -9790,10 +9792,11 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
   case Instruction::AShr:
   case Instruction::And:
   case Instruction::Or:
-  case Instruction::Xor: {
+  case Instruction::Xor:
+  case Instruction::Freeze: {
----------------
jmciver wrote:

Thanks for the feedback. You are correct. I will get that fixed.

https://github.com/llvm/llvm-project/pull/102217


More information about the llvm-commits mailing list