[llvm-branch-commits] X86: Add X86TargetLowering::isProfitableToHoist hook for immediate operands. (PR #141326)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 27 13:17:51 PDT 2025
nikic wrote:
@pcc I think using fsh should at least help to get a ror instead of the shr+shl+or.
Actually getting the value duplicated+sunk into each block is typically done in CGP, which has a bunch of related transforms. The most generic is probably tryToSinkFreeOperands driven by TTI.isProfitableToSinkOperands.
https://github.com/llvm/llvm-project/pull/141326
More information about the llvm-branch-commits
mailing list