Small fix in InstCombineCasts.cpp. Restored "alloca + bitcast" reducing for case...
authorStepan Dyatkovskiy <stpworld@narod.ru>
Sat, 5 May 2012 07:09:40 +0000 (07:09 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Sat, 5 May 2012 07:09:40 +0000 (07:09 +0000)
commit3f71cf14b224d8c4f5634296ab785e227ba3c03c
tree0c830e686cc19888fcb67df800b07c610e0e57d9
parentf2eed387d48e36f12a9945c6b71b20bdc7f46e3a
Small fix in InstCombineCasts.cpp. Restored "alloca + bitcast" reducing for case when alloca's size is calculated within the "add/sub/... nsw".
Also added fix to 2011-06-13-nsw-alloca.ll test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156231 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll