[llvm] r192276 - Add missing HasAVX512 predicate.

Andrew Trick atrick at apple.com
Tue Oct 8 22:11:10 PDT 2013


Author: atrick
Date: Wed Oct  9 00:11:10 2013
New Revision: 192276

URL: http://llvm.org/viewvc/llvm-project?rev=192276&view=rev
Log:
Add missing HasAVX512 predicate.

This was only working because AVX had cheaper rules in all cases.
I'm sure there are other places in this file where predicates are missing.

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=192276&r1=192275&r2=192276&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrAVX512.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrAVX512.td Wed Oct  9 00:11:10 2013
@@ -2224,7 +2224,7 @@ let neverHasSideEffects = 1 in {
               EVEX_4V;
 } // neverHasSideEffects = 1
 }
-
+let Predicates = [HasAVX512] in {
 defm VCVTSI2SSZ   : avx512_vcvtsi<0x2A, GR32, FR32X, i32mem, "cvtsi2ss{l}{z}">,
                                   XS, VEX_LIG, EVEX_CD8<32, CD8VT1>;
 defm VCVTSI642SSZ : avx512_vcvtsi<0x2A, GR64, FR32X, i64mem, "cvtsi2ss{q}{z}">,
@@ -2278,7 +2278,7 @@ def : Pat<(f64 (uint_to_fp GR32:$src)),
           (VCVTUSI2SDZrr (f64 (IMPLICIT_DEF)), GR32:$src)>;
 def : Pat<(f64 (uint_to_fp GR64:$src)),
           (VCVTUSI642SDZrr (f64 (IMPLICIT_DEF)), GR64:$src)>;
-
+}
 
 //===----------------------------------------------------------------------===//
 // AVX-512  Scalar convert from float/double to integer





More information about the llvm-commits mailing list