[llvm] [VectorCombine][TTI] Prevent extract/ins rewrite to GEP (PR #150216)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 07:08:10 PDT 2025
Nathan =?utf-8?q?Gau=C3=ABr?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/150216 at github.com>
================
@@ -1950,6 +1950,10 @@ class TargetTransformInfo {
const Function &F,
SmallVectorImpl<std::pair<StringRef, int64_t>> &LB) const;
+ /// Returns true if GEP should not be used to index into vectors for this
+ /// target.
+ LLVM_ABI bool isVectorElementIndexingUsingGEPAllowed() const;
----------------
RKSimon wrote:
(bikeshed) allowVectorElementIndexingUsingGEP() is slightly shorter :)
https://github.com/llvm/llvm-project/pull/150216
More information about the llvm-commits
mailing list