[PATCH] InstCombine: simplify signed range checks

Erik Eckstein eeckstein at apple.com
Tue Nov 25 04:33:55 PST 2014


Hi,

this is a patch for InstCombine. It tries to simplify
	(icmp sgt x, -1) & (icmp sgt/sge n, x) 
to
	icmp ugt/uge n, x

in case n is not negative.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-simplify-range-check.patch
Type: application/octet-stream
Size: 5938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141125/191e6995/attachment.obj>
-------------- next part --------------


Erik



More information about the llvm-commits mailing list