[llvm] [LV] Use frozen start value for FindLastIV if needed. (PR #132691)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 25 08:13:03 PDT 2025


================
@@ -474,6 +475,12 @@ Value *VPInstruction::generate(VPTransformState &State) {
     Value *Idx = State.get(getOperand(1), /*IsScalar=*/true);
     return Builder.CreateExtractElement(Vec, Idx, Name);
   }
+  case Instruction::Freeze: {
+    if (State.hasVectorValue(this))
+      return State.get(this);
----------------
david-arm wrote:

Will we still generate a freeze instruction if we have a vector value?

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


More information about the llvm-commits mailing list