Skip to content
Commit 73913f4c authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent c2f2cf89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment