[llvm] [SLSR] Adding a cost model considering register pressure (PR #213808)
Justin Fargnoli via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 15:46:16 PDT 2026
================
@@ -1362,6 +1376,118 @@ bool StraightLineStrengthReduceLegacyPass::runOnFunction(Function &F) {
return StraightLineStrengthReduce(DL, DT, SE, TTI).runOnFunction(F);
}
+// Go through all operands of instruction, and check if any operand is used in
+// another block different from the instruction's block and the another use is
----------------
justinfargnoli wrote:
```suggestion
// another block different from the instruction's block and the other use is
```
https://github.com/llvm/llvm-project/pull/213808
More information about the llvm-commits
mailing list