[all-commits] [llvm/llvm-project] dc2cfd: [CVP] Add additional sdiv tests (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 8 05:49:49 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dc2cfd0407ae9b3f2c625b20bb90b62153edfebe
      https://github.com/llvm/llvm-project/commit/dc2cfd0407ae9b3f2c625b20bb90b62153edfebe
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M llvm/test/Transforms/CorrelatedValuePropagation/sdiv.ll

  Log Message:
  -----------
  [CVP] Add additional sdiv tests (NFC)


  Commit: d687057de8babc215d1cc883514085704ede5ab4
      https://github.com/llvm/llvm-project/commit/d687057de8babc215d1cc883514085704ede5ab4
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
    M llvm/test/Transforms/CorrelatedValuePropagation/sdiv.ll

  Log Message:
  -----------
  [CVP] Try to fold sdiv to constant

If we know that the sdiv result is a single constant, directly
use that instead of performing narrowing.

Fixes https://github.com/llvm/llvm-project/issues/71659.


Compare: https://github.com/llvm/llvm-project/compare/5967375fcf35...d687057de8ba


More information about the All-commits mailing list