[PATCH] Remove test instructions that proceed shift-by-immediate instructions

David Majnemer david.majnemer at gmail.com
Sun May 19 01:32:11 PDT 2013


I've updated the patch.

This patch chooses not to optimize away test instructions if a lea
instruction can be used to replace the left shift later.
This seemed reasonable as it can give more flexibility in some cases but
I'm not attached to the behavior of this either way.


On Thu, May 16, 2013 at 4:57 AM, David Majnemer <david.majnemer at gmail.com>wrote:

> This is a follow-on to work done in r181937. It adds support for
> shift-by-immediate instructions. It appropriately deals with more obscure
> cases where the ZF flag isn't actually updated.
>
> --
> David Majnemer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130519/1bb1099f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shift-by-immediate-2.diff
Type: application/octet-stream
Size: 7181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130519/1bb1099f/attachment.obj>


More information about the llvm-commits mailing list