[all-commits] [llvm/llvm-project] 9b942a: [InstSimplify] add tests for min/max idioms; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Tue Aug 10 07:47:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b942a545cb53d4bae2071a2dea513be74f68221
      https://github.com/llvm/llvm-project/commit/9b942a545cb53d4bae2071a2dea513be74f68221
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/maxmin.ll

  Log Message:
  -----------
  [InstSimplify] add tests for min/max idioms; NFC


  Commit: f43859b4370f978d2bc625643ccbe03775b99713
      https://github.com/llvm/llvm-project/commit/f43859b4370f978d2bc625643ccbe03775b99713
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/InstSimplify/maxmin.ll

  Log Message:
  -----------
  [InstSimplify] fold min/max with limit constant; NFC

This is already done within InstCombine:
https://alive2.llvm.org/ce/z/MiGE22

...but leaving it out of analysis makes it
harder to avoid infinite loops there.


Compare: https://github.com/llvm/llvm-project/compare/faef0d042f52...f43859b4370f


More information about the All-commits mailing list