[llvm] [LV] Vectorize FMax w/o fast-math flags. (PR #146711)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 02:12:04 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);
----------------
artagnon wrote:
Seems unrelated?
https://github.com/llvm/llvm-project/pull/146711
More information about the llvm-commits
mailing list