aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-08-15 06:46:26 +0000
committerCraig Topper <craig.topper@intel.com>2019-08-15 06:46:26 +0000
commite6409602a1f9dd3204628ceb32f5b715877a0060 (patch)
tree2a5bd30ac443b5bfb571fa26e4fa29f6f798249f /llvm/lib
parent535efab2e533f98a96df31b116b5861b5e29d32d (diff)
downloadllvm-e6409602a1f9dd3204628ceb32f5b715877a0060.zip
llvm-e6409602a1f9dd3204628ceb32f5b715877a0060.tar.gz
llvm-e6409602a1f9dd3204628ceb32f5b715877a0060.tar.bz2
[X86] Make sure load is non-volatile in the MMX_X86movdq2q (loadv2i64) isel pattern.
This pattern will narrow the load so we should make sure its not volatile. llvm-svn: 368971
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86InstrMMX.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrMMX.td b/llvm/lib/Target/X86/X86InstrMMX.td
index 93e1cbd..82cad92 100644
--- a/llvm/lib/Target/X86/X86InstrMMX.td
+++ b/llvm/lib/Target/X86/X86InstrMMX.td
@@ -574,7 +574,7 @@ def MMX_X86movdq2q : SDNode<"X86ISD::MOVDQ2Q", SDTypeProfile<1, 1,
def : Pat<(x86mmx (MMX_X86movdq2q VR128:$src)),
(x86mmx (MMX_MOVDQ2Qrr VR128:$src))>;
-def : Pat<(x86mmx (MMX_X86movdq2q (loadv2i64 addr:$src))),
+def : Pat<(x86mmx (MMX_X86movdq2q (v2i64 (nonvolatile_load addr:$src)))),
(x86mmx (MMX_MOVQ64rm addr:$src))>;
// Misc.