OSDN Git Service

[InstCombine] add tests to show missed canonicalization of min/max; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 20 Jan 2017 21:49:41 +0000 (21:49 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 20 Jan 2017 21:49:41 +0000 (21:49 +0000)
commit7d5b56cb3ecf29591e8c54b7230fdb0da09f7b35
tree1df1892fb371a3f11e4e13c948fc17d21e14e7b0
parente243f513cc66b1e907a3b5836fd92a0979f8de56
[InstCombine] add tests to show missed canonicalization of min/max; NFC

Unfortunately, recognizing these in value tracking may cause us to hit
a hack in InstCombiner::visitICmpInst() more often:
http://lists.llvm.org/pipermail/llvm-dev/2017-January/109340.html

...but besides being the obviously Right Thing To Do, there's a clear
codegen win from identifying these patterns for several targets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292655 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/minmax-fold.ll