[llvm] [LV] Use ExtractLane(LastActiveLane, V) live outs when tail-folding. (PR #149042)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 8 01:28:02 PDT 2025


================
@@ -638,7 +638,12 @@ Value *VPInstruction::generate(VPTransformState &State) {
     llvm_unreachable("should be handled by VPPhi::execute");
   }
   case Instruction::Select: {
-    bool OnlyFirstLaneUsed = vputils::onlyFirstLaneUsed(this);
+    bool OnlyFirstLaneUsed =
+        vputils::onlyFirstLaneUsed(this) ||
----------------
david-arm wrote:

Is this change worth submitting separately? Not sure if it has any effect outside this PR.

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


More information about the llvm-commits mailing list