[PATCH] D78271: [TLI][PowerPC] Introduce TLI query to check if MULH is cheaper than MUL + SHIFT
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 09:09:44 PDT 2020
RKSimon added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/TargetLowering.h:1662
+ /// a multiply followed by a shift. This is false by default.
+ virtual bool isMulhCheaperThanMulShift(EVT Type) const { return false; }
+
----------------
If we add X86/SSE support we might need a IsSigned flag but unless PPC have a use case right now I don't think this needs to be added yet.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78271/new/
https://reviews.llvm.org/D78271
More information about the llvm-commits
mailing list