[all-commits] [llvm/llvm-project] e379ef: [SLSR] Avoid repeatedly calling canReuseInstructio...

Igor Wodiany via All-commits all-commits at lists.llvm.org
Fri Jun 5 01:58:35 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e379ef3ebeec1fb2592abb9b459c89c82acb3eb6
      https://github.com/llvm/llvm-project/commit/e379ef3ebeec1fb2592abb9b459c89c82acb3eb6
  Author: Igor Wodiany <igor.wodiany at amd.com>
  Date:   2026-06-05 (Fri, 05 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp

  Log Message:
  -----------
  [SLSR] Avoid repeatedly calling canReuseInstruction for the same Basis (#196545)

`canReuseInstruction` only depends on `Basis`, but runs for each
`(Basis, C)` pair. This patch moves the check earlier in the pass to
remove the repeated call.

Assisted-by: Claude Code



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list