diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-09-16 22:02:14 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-09-16 22:02:14 +0000 |
commit | 7291272ab21e8a899bf295fc544e4a00973a82b5 (patch) | |
tree | 5c4be4577e0e1d5ae33ea0a2113ef7a15c61ddfb /lib/Target/X86 | |
parent | 2e7a94137b742798df9678bff925f17844c1e0ca (diff) | |
download | llvm-7291272ab21e8a899bf295fc544e4a00973a82b5.tar.gz llvm-7291272ab21e8a899bf295fc544e4a00973a82b5.tar.bz2 llvm-7291272ab21e8a899bf295fc544e4a00973a82b5.tar.xz |
Add mayLoad attribute to AVX convert instructions, since non of them
are declared with load patterns. This fix the crash in PR10941. No testcases,
since a fold is triggered and then converted back to the register form
afterwards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86InstrSSE.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 0afc5399e1..fda3b149de 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -1340,6 +1340,7 @@ multiclass sse12_vcvt_avx<bits<8> opc, RegisterClass SrcRC, RegisterClass DstRC, X86MemOperand x86memop, string asm> { def rr : SI<opc, MRMSrcReg, (outs DstRC:$dst), (ins DstRC:$src1, SrcRC:$src), !strconcat(asm,"\t{$src, $src1, $dst|$dst, $src1, $src}"), []>; + let mayLoad = 1 in def rm : SI<opc, MRMSrcMem, (outs DstRC:$dst), (ins DstRC:$src1, x86memop:$src), !strconcat(asm,"\t{$src, $src1, $dst|$dst, $src1, $src}"), []>; |