[all-commits] [llvm/llvm-project] e260e1: [InstSimplify] fold min/max with limit constant

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e260e10c4a21784c146c94a2a14b7e78b09a9cf7
      https://github.com/llvm/llvm-project/commit/e260e10c4a21784c146c94a2a14b7e78b09a9cf7
  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

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.




More information about the All-commits mailing list