[llvm] [LV] Vectorize FMax w/o fast-math flags. (PR #146711)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 02:39:02 PDT 2025


================
@@ -595,7 +596,8 @@ Value *VPInstruction::generate(VPTransformState &State) {
     llvm_unreachable("should be handled by VPPhi::execute");
   }
   case Instruction::Select: {
-    bool OnlyFirstLaneUsed = vputils::onlyFirstLaneUsed(this);
+    bool OnlyFirstLaneUsed =
+        State.VF.isScalar() || vputils::onlyFirstLaneUsed(this);
----------------
fhahn wrote:

Not needed in the latest version, removed thanks

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


More information about the llvm-commits mailing list