commit | 2de2319124a74b2afff8a0cb1a272dc00b98e273 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Aug 30 20:38:21 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Aug 30 20:38:21 2009 +0000 |
tree | 960a8c9744db7b75c517f9363991e99ceb4858cc | |
parent | 963f4ba8265f17c781e11e10cdc09e4c88bc5cf3 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80508 91177308-0d34-0410-b5e6-96231b3b80d8