Revert "Added inst combine transforms for single bit tests from Chris's note"
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 26 Nov 2014 23:00:38 +0000 (23:00 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 26 Nov 2014 23:00:38 +0000 (23:00 +0000)
commit9e6a1814c9f5c88bf74272971f28ea4cd81fd735
tree45bd122ca6f59e1fd72de7dc7fcfac4a7b1ff447
parent6487f4bfe65db9dd4b0aa46b566580612a42c10d
Revert "Added inst combine transforms for single bit tests from Chris's note"

This reverts commit r210006, it miscompiled libapr which is used in who
knows how many projects.

A test has been added to ensure that we don't regress again.

I'll work on a rewrite of what the optimization was trying to do later.

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