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)
commitbe8af4882438eec86f5a6b14d04babde70e514ef
tree5a3ca359e7a24e8d15441217e10839f5bb941933
parent625ccb3f7897cb056c44808c6352d93378ac94a3
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!

llvm-svn: 232794
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/ScalarEvolution/fold.ll