aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-11-24 15:44:35 +0000
committerSanjay Patel <spatel@rotateright.com>2015-11-24 15:44:35 +0000
commita0d354541d59dafd7f0fb1588ebf990bb95ba3d3 (patch)
tree1428f80f58cf39264e93903b2586a6f2dfe0f70e /llvm/lib/IR/Function.cpp
parentaa93575b7e21c9e303f61bd58855dc9f8479d285 (diff)
downloadllvm-a0d354541d59dafd7f0fb1588ebf990bb95ba3d3.zip
llvm-a0d354541d59dafd7f0fb1588ebf990bb95ba3d3.tar.gz
llvm-a0d354541d59dafd7f0fb1588ebf990bb95ba3d3.tar.bz2
[x86] remove duplicate movq instruction defs (PR25554)
We had duplicated definitions for the same hardware '[v]movq' instructions. For example with SSE: def MOVZQI2PQIrr : RS2I<0x6E, MRMSrcReg, (outs VR128:$dst), (ins GR64:$src), "mov{d|q}\t{$src, $dst|$dst, $src}", // X86-64 only [(set VR128:$dst, (v2i64 (X86vzmovl (v2i64 (scalar_to_vector GR64:$src)))))], IIC_SSE_MOVDQ>; def MOV64toPQIrr : RS2I<0x6E, MRMSrcReg, (outs VR128:$dst), (ins GR64:$src), "mov{d|q}\t{$src, $dst|$dst, $src}", [(set VR128:$dst, (v2i64 (scalar_to_vector GR64:$src)))], IIC_SSE_MOVDQ>, Sched<[WriteMove]>; As shown in the test case and PR25554: https://llvm.org/bugs/show_bug.cgi?id=25554 This causes us to miss reusing an operand because later passes don't know these 'movq' are the same instruction. This patch deletes one pair of these defs. Sadly, this won't fix the original test case in the bug report. Something else is still broken. Differential Revision: http://reviews.llvm.org/D14941 llvm-svn: 253988
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions