[PATCH] D87457: [ARM][TTI] Prevents constants in a min(max) or max(min) pattern from being hoisted when in a loop
Meera Nakrani via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 07:46:35 PDT 2020
MeeraN updated this revision to Diff 293170.
MeeraN retitled this revision from "[ARM][TTI] Prevents constants in a min/max pattern from being hoisted when in a loop" to "[ARM][TTI] Prevents constants in a min(max) or max(min) pattern from being hoisted when in a loop".
MeeraN added a comment.
Added new helper function isSSATMinMaxPattern which checks whether the instruction being passed in is a valid max instruction that is part of a min(max()) or max(min()) pattern. Simplified getIntImmCostInst down to make a call to this function.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87457/new/
https://reviews.llvm.org/D87457
Files:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.h
llvm/lib/Target/Lanai/LanaiTargetTransformInfo.h
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.h
llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
llvm/test/CodeGen/Thumb2/mve-satmul-loops.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87457.293170.patch
Type: text/x-patch
Size: 24521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200921/74bef033/attachment.bin>
More information about the llvm-commits
mailing list