mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
Get rid of a bogus pattern that interferes with optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23ef105580
commit
1762c1439e
@ -605,13 +605,6 @@ let AddedComplexity = 15 in {
|
||||
(MMX_PUNPCKLDQrr VR64:$src, (MMX_V_SET0))>;
|
||||
}
|
||||
|
||||
// Scalar to v4i16 / v8i8. The source may be a GR32, but only the lower
|
||||
// 8 or 16-bits matter.
|
||||
def : Pat<(bc_v8i8 (v2i32 (scalar_to_vector GR32:$src))),
|
||||
(MMX_MOVD64rr GR32:$src)>;
|
||||
def : Pat<(bc_v4i16 (v2i32 (scalar_to_vector GR32:$src))),
|
||||
(MMX_MOVD64rr GR32:$src)>;
|
||||
|
||||
// Patterns to perform canonical versions of vector shuffling.
|
||||
let AddedComplexity = 10 in {
|
||||
def : Pat<(v8i8 (mmx_unpckl_undef VR64:$src, (undef))),
|
||||
|
7
test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll
Normal file
7
test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll
Normal file
@ -0,0 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | not grep movl
|
||||
|
||||
define <8 x i8> @a(i8 zeroext %x) nounwind {
|
||||
%r = insertelement <8 x i8> undef, i8 %x, i32 0
|
||||
ret <8 x i8> %r
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user