]> granicus.if.org Git - llvm/commit
[InstCombine] re-commit r218721 with fix for pr21199
authorGerolf Hoflehner <ghoflehner@apple.com>
Wed, 8 Oct 2014 06:42:19 +0000 (06:42 +0000)
committerGerolf Hoflehner <ghoflehner@apple.com>
Wed, 8 Oct 2014 06:42:19 +0000 (06:42 +0000)
commitf8b5847bc420e40a9b7fbdd24cd9f946059345a9
tree78168c6bef7d02858b7b6cfe08f4ebd227fb458f
parent1fa70c99dc9f357713be8a2127ac7812cee89c84
[InstCombine] re-commit r218721 with fix for pr21199

The icmp-select-icmp optimization targets select-icmp.eq
only. This is now ensured by testing the branch predicate
explictly. This commit also includes the test case for pr21199.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/pr12338.ll
test/Transforms/InstCombine/pr21199.ll [new file with mode: 0644]
test/Transforms/InstCombine/select-cmp-br.ll [new file with mode: 0644]