[llvm-commits] [llvm] r57442 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Matthijs Kooijman matthijs at stdin.nl
Mon Oct 13 08:47:35 PDT 2008


Hi Duncan,

> > Make InstructionCombining::getBitCastOperand() recognize GEP instructions and
> > constant expression with all zero indices as being the same as a bitcast.
> 
> can stripPointerCasts be used here somehow?
it does actually seem that that method does exactly what getBitCastOperand()
does, with the exception that getBitCastOperand() works for non-pointers as
well. However, both uses of getBitCastOperand only work with pointers AFAICS,
so perhaps getBitCastOperand should just be removed alltogether, then?

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081013/f94b0003/attachment.sig>


More information about the llvm-commits mailing list