[llvm-commits] [llvm-gcc] USELESS-BITCASTS.patch (please apply)

Reid Spencer rspencer at reidspencer.com
Tue Feb 6 12:42:58 PST 2007


Here's a small patch to llvm-convert.cpp that prevents llvm-gcc from
creating useless bit casts. It just checks to make sure that the types
are different before inserting a cast. This saves a bit of memory and
gives InstCombine less work to do as these useless casts were being
inserted in numerous places only to be stripped out again later.

Reid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: USELESS-BITCAST.patch
Type: text/x-patch
Size: 2969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070206/986ada8c/attachment.bin>


More information about the llvm-commits mailing list