[PATCH] D153415: [NFC SVE ACLE] Remove IR combines that no longer apply.
Jolanta Jensen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 06:06:14 PDT 2023
jolanta.jensen created this revision.
jolanta.jensen added reviewers: paulwalker-arm, mgabka.
Herald added subscribers: ctetreau, hiraditya.
Herald added a project: All.
jolanta.jensen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Remove IR combines that no longer apply after the SVE merging
intrinsics taking an all active predicate, have been canonicalised
to their equvalent undef (_u) variants.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153415
Files:
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Index: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -1247,13 +1247,10 @@
static Instruction::BinaryOps intrinsicIDToBinOpCode(unsigned Intrinsic) {
switch (Intrinsic) {
- case Intrinsic::aarch64_sve_fmul:
case Intrinsic::aarch64_sve_fmul_u:
return Instruction::BinaryOps::FMul;
- case Intrinsic::aarch64_sve_fadd:
case Intrinsic::aarch64_sve_fadd_u:
return Instruction::BinaryOps::FAdd;
- case Intrinsic::aarch64_sve_fsub:
case Intrinsic::aarch64_sve_fsub_u:
return Instruction::BinaryOps::FSub;
default:
@@ -1330,7 +1327,7 @@
Intrinsic::aarch64_sve_fmla>(IC, II,
true))
return FMLA;
- return instCombineSVEVectorBinOp(IC, II);
+ return std::nullopt;
}
static std::optional<Instruction *>
@@ -1372,7 +1369,7 @@
Intrinsic::aarch64_sve_fmls>(IC, II,
true))
return FMLS;
- return instCombineSVEVectorBinOp(IC, II);
+ return std::nullopt;
}
static std::optional<Instruction *>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153415.533232.patch
Type: text/x-patch
Size: 1368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230621/d1cea189/attachment.bin>
More information about the llvm-commits
mailing list