Eli Bendersky
9966b26dac
Fix PR19270 - type mismatch caused by invalid optimization.
...
Patch by Jingyue Wu.
llvm-svn: 205547
2014-04-03 17:51:58 +00:00
Matt Arsenault
b03bd4d96b
Add addrspacecast instruction.
...
Patch by Michele Scandale!
llvm-svn: 194760
2013-11-15 01:34:59 +00:00
Nadav Rotem
cc771acd77
This testcase passed even without the fix. Added the target info to make the
...
test fail (without the fix). Thanks Dan.
llvm-svn: 128999
2011-04-06 11:18:29 +00:00
Nadav Rotem
a069c6ce05
InstCombine optimizes gep(bitcast(x)) even when the bitcasts casts away address
...
space info. We crash with an assert in this case. This change checks that the
address space of the bitcasted pointer is the same as the gep ptr.
llvm-svn: 128884
2011-04-05 14:29:52 +00:00