[llvm] [TTI] NFC: Port TLI.shouldSinkOperands to TTI (PR #110564)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 12:57:32 PDT 2024
================
@@ -1744,6 +1744,13 @@ class TargetTransformInfo {
bool hasActiveVectorLength(unsigned Opcode, Type *DataType,
Align Alignment) const;
+ /// Return true if sinking I's operands to the same basic block as I is
+ /// profitable, e.g. because the operands can be folded into a target
+ /// instruction during instruction selection. After calling the function
+ /// \p Ops contains the Uses to sink ordered by dominance (dominating users
+ /// come first).
+ bool shouldSinkOperands(Instruction *I, SmallVectorImpl<Use *> &Ops) const;
----------------
arsenm wrote:
I think the name needs work if it's moving to a more general place
https://github.com/llvm/llvm-project/pull/110564
More information about the llvm-commits
mailing list