aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-16 06:31:37 +0000
committerChris Lattner <sabre@nondot.org>2009-07-16 06:31:37 +0000
commit6ef40b11f8331b80d72e7e5f2670d8e0eb190bb2 (patch)
tree1b4034f7225814f405c68627862cb16a112376a1
parent115934eb57d02d4413aea1931a56ca9102d59f0b (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75899 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86Instr64bit.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86Instr64bit.td b/lib/Target/X86/X86Instr64bit.td
index dd6f984144..c4b25fca2f 100644
--- a/lib/Target/X86/X86Instr64bit.td
+++ b/lib/Target/X86/X86Instr64bit.td
@@ -1309,7 +1309,7 @@ def Int_CVTTSS2SI64rm: RSSI<0x2C, MRMSrcMem, (outs GR64:$dst), (ins f32mem:$src)
// 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.