From 4ed0907298a68d5416c08182db148f831868d57b Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 4 Apr 2015 02:31:43 +0000 Subject: [PATCH] [X86] Add a comment about the change in r234075. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234079 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrCompiler.td | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/X86/X86InstrCompiler.td b/lib/Target/X86/X86InstrCompiler.td index e7de24bca41..227f69a9d84 100644 --- a/lib/Target/X86/X86InstrCompiler.td +++ b/lib/Target/X86/X86InstrCompiler.td @@ -1232,6 +1232,8 @@ def : Pat<(store (add (loadi64 addr:$dst), 0x00000000800000000), addr:$dst), // with implicit zero-extension instead of a 64-bit and if the immediate has at // least 32 bits of leading zeros. If in addition the last 32 bits can be // represented with a sign extension of a 8 bit constant, use that. +// This can also reduce instruction size by eliminating the need for the REX +// prefix. let AddedComplexity = 1 in // Give priority over i64immSExt8. def : Pat<(and GR64:$src, i64immZExt32SExt8:$imm), -- 2.34.1