[PATCH] D59506: [ValueTracking][InstSimplify] Support min/max selects in computeConstantRange()

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 11:47:06 PDT 2019


nikic updated this revision to Diff 192308.
nikic added a reviewer: arsenm.
nikic added a comment.
Herald added a subscriber: wdng.

Add `-amdgpu-scalar-ir-passes` flag and split off the problematic umed3/smed3 tests into a separate file with `-amdgpu-scalar-ir-passes=false`. It's not possible to disable this for the whole umed3/smed3 tests because the scalar IR passes are needed for the tests that involve inlining.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59506/new/

https://reviews.llvm.org/D59506

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  llvm/test/CodeGen/AMDGPU/med3-no-simplify.ll
  llvm/test/CodeGen/AMDGPU/smed3.ll
  llvm/test/CodeGen/AMDGPU/umed3.ll
  llvm/test/Transforms/InstCombine/minmax-fold.ll
  llvm/test/Transforms/InstCombine/sub.ll
  llvm/test/Transforms/InstSimplify/cmp_of_min_max.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59506.192308.patch
Type: text/x-patch
Size: 10697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190326/f5cfb72e/attachment.bin>


More information about the llvm-commits mailing list