[llvm-commits] patch: don't remove CMP if used by instruction that both reads and modifies EFLAGS
Nick Lewycky
nlewycky at google.com
Fri Jul 27 19:14:46 PDT 2012
This patch fixes PR13475, a miscompile in unzip. The problem manifested in
code like:
subl %esi, %eax
cmpl %edx, %esi
sbbb %cl, %cl
where we concluded that it was safe to remove the cmp without changing the
sbb. Please review!
Nick
PS. There's an optimization opportunity here, to turn the cmp+sbbb into a
setnc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120727/d05422af/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr13475-1.patch
Type: application/octet-stream
Size: 1930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120727/d05422af/attachment.obj>
More information about the llvm-commits
mailing list