[llvm-commits] [llvm] r75899 - /llvm/trunk/lib/Target/X86/X86Instr64bit.td

Chris Lattner sabre at nondot.org
Wed Jul 15 23:31:38 PDT 2009


Author: lattner
Date: Thu Jul 16 01:31:37 2009
New Revision: 75899

URL: http://llvm.org/viewvc/llvm-project?rev=75899&view=rev
Log:
use SUBREG_TO_REG instead of INSERT_SUBREG, this way the code
generator can know the top bits are zero, not undefined.
Thanks to Dan for pointing this out.


Modified:
    llvm/trunk/lib/Target/X86/X86Instr64bit.td

Modified: llvm/trunk/lib/Target/X86/X86Instr64bit.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Instr64bit.td?rev=75899&r1=75898&r2=75899&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86Instr64bit.td (original)
+++ llvm/trunk/lib/Target/X86/X86Instr64bit.td Thu Jul 16 01:31:37 2009
@@ -1309,7 +1309,7 @@
 // when we have a better way to specify isel priority.
 let AddedComplexity = 1 in
 def : Pat<(i64 0),
-          (INSERT_SUBREG (i64 (IMPLICIT_DEF)), (MOV32r0), x86_subreg_32bit)>;
+          (SUBREG_TO_REG (i64 0), (MOV32r0), x86_subreg_32bit)>;
 
 
 // Materialize i64 constant where top 32-bits are zero.





More information about the llvm-commits mailing list