[llvm] r321597 - [X86] Remove patterns for load/store of vXi with bitcasts to/from integer.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 30 23:38:36 PST 2017
Author: ctopper
Date: Sat Dec 30 23:38:36 2017
New Revision: 321597
URL: http://llvm.org/viewvc/llvm-project?rev=321597&view=rev
Log:
[X86] Remove patterns for load/store of vXi with bitcasts to/from integer.
This is better handled by a DAG combine if its not already being done. No lit tests fail from the removal of these patterns.
Modified:
llvm/trunk/lib/Target/X86/X86InstrAVX512.td
Modified: llvm/trunk/lib/Target/X86/X86InstrAVX512.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrAVX512.td?rev=321597&r1=321596&r2=321597&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrAVX512.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrAVX512.td Sat Dec 30 23:38:36 2017
@@ -2701,11 +2701,6 @@ def : Pat<(i64 (bitconvert (v64i1 VK64:$
// Load/store kreg
let Predicates = [HasDQI] in {
- def : Pat<(store (i8 (bitconvert (v8i1 VK8:$src))), addr:$dst),
- (KMOVBmk addr:$dst, VK8:$src)>;
- def : Pat<(v8i1 (bitconvert (i8 (load addr:$src)))),
- (KMOVBkm addr:$src)>;
-
def : Pat<(store VK4:$src, addr:$dst),
(KMOVBmk addr:$dst, (COPY_TO_REGCLASS VK4:$src, VK8))>;
def : Pat<(store VK2:$src, addr:$dst),
@@ -2745,22 +2740,8 @@ let Predicates = [HasAVX512, NoDQI] in {
}
let Predicates = [HasAVX512] in {
- def : Pat<(store (i16 (bitconvert (v16i1 VK16:$src))), addr:$dst),
- (KMOVWmk addr:$dst, VK16:$src)>;
def : Pat<(v1i1 (load addr:$src)),
(COPY_TO_REGCLASS (MOVZX32rm8 addr:$src), VK1)>;
- def : Pat<(v16i1 (bitconvert (i16 (load addr:$src)))),
- (KMOVWkm addr:$src)>;
-}
-let Predicates = [HasBWI] in {
- def : Pat<(store (i32 (bitconvert (v32i1 VK32:$src))), addr:$dst),
- (KMOVDmk addr:$dst, VK32:$src)>;
- def : Pat<(v32i1 (bitconvert (i32 (load addr:$src)))),
- (KMOVDkm addr:$src)>;
- def : Pat<(store (i64 (bitconvert (v64i1 VK64:$src))), addr:$dst),
- (KMOVQmk addr:$dst, VK64:$src)>;
- def : Pat<(v64i1 (bitconvert (i64 (load addr:$src)))),
- (KMOVQkm addr:$src)>;
}
let Predicates = [HasAVX512] in {
More information about the llvm-commits
mailing list