projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9bbc4d
)
[X86] Add a comment about the change in r234075.
author
Craig Topper
<craig.topper@gmail.com>
Sat, 4 Apr 2015 02:31:43 +0000
(
02:31
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sat, 4 Apr 2015 02:31:43 +0000
(
02:31
+0000)
llvm-svn: 234079
llvm/lib/Target/X86/X86InstrCompiler.td
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86InstrCompiler.td
b/llvm/lib/Target/X86/X86InstrCompiler.td
index
e7de24b
..
227f69a
100644
(file)
--- 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),