[PATCH] Remove seemingly dead InstCombine compare code

Matt Arsenault Matthew.Arsenault at amd.com
Thu Aug 1 13:34:29 PDT 2013


Turn check / insert cast into assertions that the sizes are the same. Add some more tests to try to break it. These paths seemed to not be tested with a datalayout. This checks if it needs to cast GEP indices, but at this point they should have already been converted to the pointer sized integer.


http://llvm-reviews.chandlerc.com/D1261

Files:
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/getelementptr.ll
  test/Transforms/InstCombine/icmp.ll
  test/Transforms/InstCombine/load-cmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1261.1.patch
Type: text/x-patch
Size: 25293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130801/22acd3b4/attachment.bin>


More information about the llvm-commits mailing list