Now that instruction optzns can update the iterator as they go, we can
authorChris Lattner <sabre@nondot.org>
Sat, 15 Jan 2011 07:25:29 +0000 (07:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 15 Jan 2011 07:25:29 +0000 (07:25 +0000)
commit94e8e0cfbe13cdbdf7addc6e36df863cab92e4c9
tree98f51b117a90652f64838caa862d98cbebdfe687
parent7579609bfe0d915b6c2d8dc094a132d793ec8855
Now that instruction optzns can update the iterator as they go, we can
have objectsize folding recursively simplify away their result when it
folds.  It is important to catch this here, because otherwise we won't
eliminate the cross-block values at isel and other times.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123524 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/basic.ll [new file with mode: 0644]