[all-commits] [llvm/llvm-project] 4276d0: [InstCombine] add helper function for sub-of-min/m...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Jul 4 15:32:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4276d00b125351ebb2420e598332800976809a9e
      https://github.com/llvm/llvm-project/commit/4276d00b125351ebb2420e598332800976809a9e
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-07-04 (Mon, 04 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/sub-minmax.ll

  Log Message:
  -----------
  [InstCombine] add helper function for sub-of-min/max folds; NFC

The test diffs are cosmetic -- but improvements -- because we
let instcombine handle replacement. Instead of dropping the
old value name, it propagates to the new instruction.




More information about the All-commits mailing list