[llvm-commits] PATCH: custom lowering of x86 dec instruction
Peter Cooper
peter_cooper at apple.com
Fri Nov 11 17:59:28 PST 2011
Hi
Please review the attached patch to custom lower a load->dec->store sequence for 64-bit integers on x86.
This is required because tablegen currently doesn't have a way to specify that a store pattern (DEC64m in this case) sets the EFLAGS register with a value that is usable by anything reading EFLAGS from the add -1 in the pattern.
I've also changed code in EmitTest to allow stores to read from the EFLAGS setting instruction as they won't clobber the flags but this then allows EmitTest to avoid generating an explicit compare instruction.
Thanks,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6172640.patch
Type: application/octet-stream
Size: 4995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111111/b487becb/attachment.obj>
More information about the llvm-commits
mailing list