[llvm] r355809 - [X86] Remove apparently unneeded patterns for storing a bitcasted extractelement.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 10 23:01:02 PDT 2019
Author: ctopper
Date: Sun Mar 10 23:01:02 2019
New Revision: 355809
URL: http://llvm.org/viewvc/llvm-project?rev=355809&view=rev
Log:
[X86] Remove apparently unneeded patterns for storing a bitcasted extractelement.
I suspect if this pattern was seen, DAG combine would just change the type of the store to eliminate the bitcast.
Modified:
llvm/trunk/lib/Target/X86/X86InstrSSE.td
Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSSE.td?rev=355809&r1=355808&r2=355809&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Sun Mar 10 23:01:02 2019
@@ -5495,18 +5495,6 @@ let ExeDomain = SSEPackedSingle in {
defm EXTRACTPS : SS41I_extractf32<0x17, "extractps">;
}
-// Also match an EXTRACTPS store when the store is done as f32 instead of i32.
-def : Pat<(store (f32 (bitconvert (extractelt (bc_v4i32 (v4f32 VR128:$src1)),
- imm:$src2))),
- addr:$dst),
- (VEXTRACTPSmr addr:$dst, VR128:$src1, imm:$src2)>,
- Requires<[HasAVX]>;
-def : Pat<(store (f32 (bitconvert (extractelt (bc_v4i32 (v4f32 VR128:$src1)),
- imm:$src2))),
- addr:$dst),
- (EXTRACTPSmr addr:$dst, VR128:$src1, imm:$src2)>,
- Requires<[UseSSE41]>;
-
//===----------------------------------------------------------------------===//
// SSE4.1 - Insert Instructions
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list