]> granicus.if.org Git - llvm/commit
[InstCombine] allow icmp+binop folds before min/max bailout (PR43310)
authorSanjay Patel <spatel@rotateright.com>
Sun, 22 Sep 2019 14:31:53 +0000 (14:31 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 22 Sep 2019 14:31:53 +0000 (14:31 +0000)
commit7c6724540c50dc7141e676bfb6a479b12bc2be47
treea5ec84e19398c5153e0057b2f989d7dc0975747a
parent0869ecd09e04e21ae3bac872a2bb45494853f265
[InstCombine] allow icmp+binop folds before min/max bailout (PR43310)

This has the potential to uncover missed analysis/folds as shown in the
min/max code comment/test, but fewer restrictions on icmp folds should
be better in general to solve cases like:
https://bugs.llvm.org/show_bug.cgi?id=43310

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372510 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/icmp.ll
test/Transforms/InstCombine/minmax-fold.ll