summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/getelementptr.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-30 20:38:21 +0000
committerChris Lattner <sabre@nondot.org>2009-08-30 20:38:21 +0000
commit73913f4cd3e86275e5b6cf55a1c8ed3c38c71516 (patch)
tree2b4990781a042af3d6eed7bf88e738e685163122 /llvm/test/Transforms/InstCombine/getelementptr.ll
parentc2f2cf896e3c5ca269eaf0621965d6e3378cc625 (diff)
downloadbcm5719-llvm-73913f4cd3e86275e5b6cf55a1c8ed3c38c71516.tar.gz
bcm5719-llvm-73913f4cd3e86275e5b6cf55a1c8ed3c38c71516.zip
Fix PR4748: don't fold gep(bitcast(x)) into bitcast(gep) when x
is itself a bitcast. Since we have gep(bitcast(bitcast(y))) in this case, just wait for the two bitcasts to get zapped. This prevents instcombine from confusing some aliasing stuff, and allows it to directly eliminate the load in the testcase. llvm-svn: 80508
Diffstat (limited to 'llvm/test/Transforms/InstCombine/getelementptr.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud