[llvm] 678cdd6 - [X86] Directly call isShuffleFoldableLoad (NFC) (#143060)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 22:58:59 PDT 2025
Author: Kazu Hirata
Date: 2025-06-05T22:58:55-07:00
New Revision: 678cdd67b957cb49e7fe2cce2610cd720cbdf130
URL: https://github.com/llvm/llvm-project/commit/678cdd67b957cb49e7fe2cce2610cd720cbdf130
DIFF: https://github.com/llvm/llvm-project/commit/678cdd67b957cb49e7fe2cce2610cd720cbdf130.diff
LOG: [X86] Directly call isShuffleFoldableLoad (NFC) (#143060)
We don't need a lambda here.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index bbb9c797202e6..e929dab429de5 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -42914,7 +42914,7 @@ static SDValue combineTargetShuffle(SDValue N, const SDLoc &DL,
(SubOps.size() == 2 || (SubOps[2].isUndef() && SubOps[3].isUndef())))
return SDValue();
// Bail if any subops would have folded into the concat.
- if (any_of(SubOps, [](SDValue Op) { return isShuffleFoldableLoad(Op); }))
+ if (any_of(SubOps, isShuffleFoldableLoad))
return SDValue();
// Concat 4x128 back to 2x256.
if (SubOps.size() == 4) {
More information about the llvm-commits
mailing list