[llvm] [EarlyCSE, TTI] Don't create new, unused, instructions. (PR #134534)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 04:02:22 PDT 2025
================
@@ -4967,18 +4967,24 @@ void AArch64TTIImpl::getPeelingPreferences(Loop *L, ScalarEvolution &SE,
BaseT::getPeelingPreferences(L, SE, PP);
}
-Value *
-AArch64TTIImpl::getOrCreateResultFromMemIntrinsic(IntrinsicInst *Inst,
- Type *ExpectedType) const {
+Value *AArch64TTIImpl::getOrCreateResultFromMemIntrinsic(IntrinsicInst *Inst,
+ Type *ExpectedType,
+ bool CanCreate) const {
switch (Inst->getIntrinsicID()) {
default:
return nullptr;
+ case Intrinsic::aarch64_neon_ld2:
+ case Intrinsic::aarch64_neon_ld3:
+ case Intrinsic::aarch64_neon_ld4:
+ if (Inst->getType() == ExpectedType)
+ return Inst;
+ return nullptr;
----------------
fhahn wrote:
yeah, restored the original order
https://github.com/llvm/llvm-project/pull/134534
More information about the llvm-commits
mailing list