[llvm-commits] [llvm] r108844 -	/llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
    Jim Grosbach 
    grosbach at apple.com
       
    Tue Jul 20 09:07:04 PDT 2010
    
    
  
Author: grosbach
Date: Tue Jul 20 11:07:04 2010
New Revision: 108844
URL: http://llvm.org/viewvc/llvm-project?rev=108844&view=rev
Log:
Using BIC for immediates needs an extra bump for its complexity to get
instruction selection to prefer it when possible. rdar://7903972
Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td?rev=108844&r1=108843&r2=108844&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td Tue Jul 20 11:07:04 2010
@@ -1686,6 +1686,7 @@
 defm t2MVN  : T2I_un_irs <0b0011, "mvn", UnOpFrag<(not node:$Src)>, 1, 1>;
 
 
+let AddedComplexity = 1 in
 def : T2Pat<(and     GPR:$src, t2_so_imm_not:$imm),
             (t2BICri GPR:$src, t2_so_imm_not:$imm)>;
 
    
    
More information about the llvm-commits
mailing list