summaryrefslogtreecommitdiffstats
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
commitd8fc886b1ff4869d92b1f87290eced88e7cfce95 (patch)
treeb0aa0d38c42a37e8a119f6b3de18dbe0d3600ad6
parent5dd954b6614438e8e7f778e6683fa7df1f88d473 (diff)
downloadbcm5719-llvm-d8fc886b1ff4869d92b1f87290eced88e7cfce95.tar.gz
bcm5719-llvm-d8fc886b1ff4869d92b1f87290eced88e7cfce95.zip
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. llvm-svn: 75899
-rw-r--r--llvm/lib/Target/X86/X86Instr64bit.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86Instr64bit.td b/llvm/lib/Target/X86/X86Instr64bit.td
index dd6f984144f..c4b25fca2fc 100644
--- a/llvm/lib/Target/X86/X86Instr64bit.td
+++ b/llvm/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.
OpenPOWER on IntegriCloud