[llvm] [TTI] NFC: Port TLI.shouldSinkOperands to TTI (PR #110564)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 02:47:34 PDT 2024


================
@@ -6894,3 +6894,82 @@ InstructionCost X86TTIImpl::getBranchMispredictPenalty() const {
   // TODO: Hook MispredictPenalty of SchedMachineModel into this.
   return 14;
 }
+
+static bool isVectorShiftByScalarCheap(Type *Ty, const X86Subtarget *ST) {
----------------
RKSimon wrote:

Maybe move TargetLowering::isVectorShiftByScalarCheap into TTI as well? X86 is its only user

https://github.com/llvm/llvm-project/pull/110564


More information about the llvm-commits mailing list