OSDN Git Service

Merging r196611:
authorBill Wendling <isanbard@gmail.com>
Fri, 6 Dec 2013 22:12:13 +0000 (22:12 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 6 Dec 2013 22:12:13 +0000 (22:12 +0000)
commit7b7037563b12589e675c655e5d1e4f737f50fa9d
treebcb1a6c4ce979a6403646d9c586fc97862b38d8c
parent1d0164e7ac8d1e23680a2c5139ba7b38af5b31c3
Merging r196611:
------------------------------------------------------------------------
r196611 | dexonsmith | 2013-12-06 13:48:36 -0800 (Fri, 06 Dec 2013) | 5 lines

Don't use isNullValue to evaluate ConstantExpr

ConstantExpr can evaluate to false even when isNullValue gives false.

Fixes PR18143.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/phi-select-constexpr.ll [new file with mode: 0644]