[LLVMdev] TableGen syntax for matching a constant load

Jakob Stoklund Olesen stoklund at 2pi.dk
Sat Feb 26 14:04:54 PST 2011


On Feb 26, 2011, at 1:36 PM, Joerg Sonnenberger wrote:

> On Sat, Feb 26, 2011 at 01:07:39PM -0800, Jakob Stoklund Olesen wrote:
>> 
>> You may want to consider using xorl+decl instead. It is also three
>> bytes, and there are no false dependencies. The xor idiom is recognized
>> by processors as old as Pentium 4 as having no dependencies.
> 
> Any examples of how to create more than one instructions for a given
> pattern? There are some other cases I could use this for.

def : Pat<(i32 -1), (DEC32r (MOV32r0))>;

/jakob


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110226/2301e286/attachment.html>


More information about the llvm-dev mailing list