When simplifying a SCEV truncate by distributing, consider it a simplification to...
authorNick Lewycky <nicholas@mxc.ca>
Fri, 20 Mar 2015 02:25:00 +0000 (02:25 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 20 Mar 2015 02:25:00 +0000 (02:25 +0000)
commitbea9b06e84c182d9e91e370c25e2a72af7b0008a
treeacc2a3e40df0512c032d920d42b8e5d46981117f
parent67934e4b411a29383059d3ecab09dc184601c75e
When simplifying a SCEV truncate by distributing, consider it a simplification to replace a cast, even if we end up with a trunc around the term. Fixes PR22960!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232794 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/fold.ll