[llvm] [X86] LowerShift - track the number and location of constant shift elements. (PR #120270)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 02:21:00 PST 2024
================
@@ -30057,6 +30057,23 @@ static SDValue LowerShift(SDValue Op, const X86Subtarget &Subtarget,
return DAG.getVectorShuffle(VT, dl, R0, R1, {0, 3});
}
+ // Build a map of inrange constant amounts with element mask where they occur.
+ std::map<unsigned, APInt> UniqueCstAmt;
----------------
RKSimon wrote:
Yes, I think so - maybe even SmallDenseMap?
https://github.com/llvm/llvm-project/pull/120270
More information about the llvm-commits
mailing list