[llvm] [Instructions] cache computed shufflevector properties (PR #115536)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 07:53:39 PST 2025
================
@@ -1903,6 +1917,27 @@ class ShuffleVectorInst : public Instruction {
SmallVector<int, 4> ShuffleMask;
Constant *ShuffleMaskForBitcode;
+ ShuffleMaskAttrs ShuffleAttrs;
+
+ // (Re)compute the shuffle mask attributes.
+ void computeShuffleAttrs() {
+ ShuffleAttrs = {}; // reset
----------------
nikic wrote:
Not needed, as you're reassigning all members anyway.
https://github.com/llvm/llvm-project/pull/115536
More information about the llvm-commits
mailing list