mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-11 04:06:20 +00:00
[X86] Remove some redundant selection patterns.
llvm-svn: 268180
This commit is contained in:
parent
c9b1923358
commit
7ed84d826e
@ -3059,9 +3059,6 @@ let Predicates = [HasAVX512] in {
|
||||
def : Pat<(store (f32 (extractelt (v4f32 VR128X:$src), (iPTR 0))),
|
||||
addr:$dst),
|
||||
(VMOVSSZmr addr:$dst, (COPY_TO_REGCLASS (v4f32 VR128X:$src), FR32X))>;
|
||||
def : Pat<(store (f64 (extractelt (v2f64 VR128X:$src), (iPTR 0))),
|
||||
addr:$dst),
|
||||
(VMOVSDZmr addr:$dst, (COPY_TO_REGCLASS (v2f64 VR128X:$src), FR64X))>;
|
||||
|
||||
// Shuffle with VMOVSS
|
||||
def : Pat<(v4i32 (X86Movss VR128X:$src1, VR128X:$src2)),
|
||||
|
@ -657,9 +657,6 @@ let Predicates = [UseAVX] in {
|
||||
def : Pat<(store (f32 (extractelt (v4f32 VR128:$src), (iPTR 0))),
|
||||
addr:$dst),
|
||||
(VMOVSSmr addr:$dst, (COPY_TO_REGCLASS (v4f32 VR128:$src), FR32))>;
|
||||
def : Pat<(store (f64 (extractelt (v2f64 VR128:$src), (iPTR 0))),
|
||||
addr:$dst),
|
||||
(VMOVSDmr addr:$dst, (COPY_TO_REGCLASS (v2f64 VR128:$src), FR64))>;
|
||||
|
||||
// Shuffle with VMOVSS
|
||||
def : Pat<(v4i32 (X86Movss VR128:$src1, VR128:$src2)),
|
||||
@ -773,11 +770,6 @@ let Predicates = [UseSSE2] in {
|
||||
(COPY_TO_REGCLASS (MOVSDrm addr:$src), VR128)>;
|
||||
}
|
||||
|
||||
// Extract and store.
|
||||
def : Pat<(store (f64 (extractelt (v2f64 VR128:$src), (iPTR 0))),
|
||||
addr:$dst),
|
||||
(MOVSDmr addr:$dst, (COPY_TO_REGCLASS VR128:$src, FR64))>;
|
||||
|
||||
// Shuffle with MOVSD
|
||||
def : Pat<(v2i64 (X86Movsd VR128:$src1, VR128:$src2)),
|
||||
(MOVSDrr VR128:$src1, (COPY_TO_REGCLASS VR128:$src2, FR64))>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user