[llvm] [AArch64][Machine-Combiner] Split loads into lanes of neon vectors into multiple vectors when possible (PR #142941)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 06:50:41 PDT 2025
================
@@ -7367,11 +7372,245 @@ static bool getMiscPatterns(MachineInstr &Root,
return false;
}
+static bool getGatherPattern(MachineInstr &Root,
+ SmallVectorImpl<unsigned> &Patterns,
+ unsigned LoadLaneOpCode, unsigned NumLanes) {
+ // Early exit if optimizing for size.
+ if (Root.getMF()->getFunction().hasMinSize())
----------------
fhahn wrote:
Might be worth pulling out Root.getMF() into a separate variable
https://github.com/llvm/llvm-project/pull/142941
More information about the llvm-commits
mailing list