]> granicus.if.org Git - llvm/commit
[InstCombine] re-use bitcasted compare operands in selects (PR28001)
authorSanjay Patel <spatel@rotateright.com>
Sat, 29 Oct 2016 15:22:04 +0000 (15:22 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 29 Oct 2016 15:22:04 +0000 (15:22 +0000)
commit9978e172438006c6f524dbb34acd9278a9d046be
tree98cac744dcdac9d7f35efc77c28a6c0afd151cc0
parent6722cc3c8a4e16c9c5b09734afd223bf76b9f56b
[InstCombine] re-use bitcasted compare operands in selects (PR28001)

These mixed bitcast patterns show up with SSE/AVX intrinsics because we bitcast function parameters to <2 x i64>.

The bitcasts obfuscate the expected min/max forms as shown in PR28001:
https://llvm.org/bugs/show_bug.cgi?id=28001#c6

Differential Revision: https://reviews.llvm.org/D25943

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