summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-04-04 02:31:43 +0000
committerCraig Topper <craig.topper@gmail.com>2015-04-04 02:31:43 +0000
commit3d44178733c451f12075b6527580db10ce11c50d (patch)
tree6f9195c6d43b0da337bb9ee7d9cb63ed0679223e /llvm/lib
parentd9bbc4d2eef5a31788e2212af10ff7b4ebdd9618 (diff)
downloadbcm5719-llvm-3d44178733c451f12075b6527580db10ce11c50d.tar.gz
bcm5719-llvm-3d44178733c451f12075b6527580db10ce11c50d.zip
[X86] Add a comment about the change in r234075.
llvm-svn: 234079
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86InstrCompiler.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrCompiler.td b/llvm/lib/Target/X86/X86InstrCompiler.td
index e7de24bca41..227f69a9d84 100644
--- a/llvm/lib/Target/X86/X86InstrCompiler.td
+++ b/llvm/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),
OpenPOWER on IntegriCloud