[llvm-commits] [PATCH] Emit andl instructions instead of andq instructions if possible

David Majnemer david.majnemer at gmail.com
Fri Dec 14 10:45:58 PST 2012


Ping.


On Sun, Dec 9, 2012 at 1:06 AM, David Majnemer <david.majnemer at gmail.com>wrote:

> There are cases where LLVM chooses to emit andq instructions where an andl
> instruction would suffice. The latter instruction is advantageous because
> it is a single byte smaller.
>
> LLVM already had entries in X86InstrCompiler.td to perform this
> optimization, however another pattern was being preferred. The attached
> patch increases the priorities of two patterns so that they will
> be preferred is they match.
>
> The attached patch passes all regressions and includes a test to verify
> that the fix is working.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121214/37cf4e56/attachment.html>


More information about the llvm-commits mailing list