Remove duplicate pattern and add predicate checks on other patterns.

llvm-svn: 200455
This commit is contained in:
Craig Topper 2014-01-30 06:03:19 +00:00
parent cfb7e2a038
commit 7940cc70b4

View File

@ -90,10 +90,11 @@ def AVX512_512_SET0 : I<0, Pseudo, (outs VR512:$dst), (ins), "",
[(set VR512:$dst, (v16f32 immAllZerosV))]>;
}
let Predicates = [HasAVX512] in {
def : Pat<(v8i64 immAllZerosV), (AVX512_512_SET0)>;
def : Pat<(v16i32 immAllZerosV), (AVX512_512_SET0)>;
def : Pat<(v8f64 immAllZerosV), (AVX512_512_SET0)>;
def : Pat<(v16f32 immAllZerosV), (AVX512_512_SET0)>;
}
//===----------------------------------------------------------------------===//
// AVX-512 - VECTOR INSERT