[LLVMdev] pattern matching order
    Jakob Stoklund Olesen 
    stoklund at 2pi.dk
       
    Fri Feb  8 10:06:26 PST 2013
    
    
  
On Feb 8, 2013, at 9:38 AM, Reed Kotler <rkotler at mips.com> wrote:
> It seems that patterns are matched in the order that they appear in the td file.
> 
> Is this something we can rely on?
It is by design but it is the last resort for ordering, and it is very fragile to depend on that.
It is better to use AddedComplexity to control pattern ordering when required.
/jakob
    
    
More information about the llvm-dev
mailing list