OSDN Git Service

ConstantFold: Check that truncating the other side is safe under a sext when trying...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 30 Jun 2013 13:47:43 +0000 (13:47 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 30 Jun 2013 13:47:43 +0000 (13:47 +0000)
commit80c070493d657a4bcc6eca5627c28d659d3330d8
treeb4ddcd619465d15211d9f7645a16997b13088fd6
parent58b6dc032a668e637a9a9e63290652f32d372a5f
ConstantFold: Check that truncating the other side is safe under a sext when trying to remove a sext from a compare.

Fixes PR16462.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185284 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Transforms/InstCombine/2010-03-03-ExtElim.ll