[PATCH] D49313: [X86][SLH] Add VEX and EVEX conversion instructions to isDataInvariantLoad
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 12:05:26 PDT 2018
craig.topper created this revision.
craig.topper added a reviewer: chandlerc.
-Drop the intrinsic versions of conversion instructions. These should be handled when we do vectors. They shouldn't show up in scalar code.
-Add the float<->double conversions which were missing.
-Add the AVX512 and AVX version of the conversion instructions including the unsigned integer conversions unique to AVX512
https://reviews.llvm.org/D49313
Files:
lib/Target/X86/X86SpeculativeLoadHardening.cpp
Index: lib/Target/X86/X86SpeculativeLoadHardening.cpp
===================================================================
--- lib/Target/X86/X86SpeculativeLoadHardening.cpp
+++ lib/Target/X86/X86SpeculativeLoadHardening.cpp
@@ -938,19 +938,25 @@
case X86::SHRX64rm:
// Conversions are believed to be constant time and don't set flags.
- // FIXME: Add AVX versions.
- case X86::CVTSD2SI64rm_Int:
- case X86::CVTSD2SIrm_Int:
- case X86::CVTSS2SI64rm_Int:
- case X86::CVTSS2SIrm_Int:
- case X86::CVTTSD2SI64rm:
- case X86::CVTTSD2SI64rm_Int:
- case X86::CVTTSD2SIrm:
- case X86::CVTTSD2SIrm_Int:
- case X86::CVTTSS2SI64rm:
- case X86::CVTTSS2SI64rm_Int:
- case X86::CVTTSS2SIrm:
- case X86::CVTTSS2SIrm_Int:
+ case X86::CVTTSD2SI64rm: case X86::VCVTTSD2SI64rm: case X86::VCVTTSD2SI64Zrm:
+ case X86::CVTTSD2SIrm: case X86::VCVTTSD2SIrm: case X86::VCVTTSD2SIZrm:
+ case X86::CVTTSS2SI64rm: case X86::VCVTTSS2SI64rm: case X86::VCVTTSS2SI64Zrm:
+ case X86::CVTTSS2SIrm: case X86::VCVTTSS2SIrm: case X86::VCVTTSS2SIZrm:
+ case X86::CVTSI2SDrm: case X86::VCVTSI2SDrm: case X86::VCVTSI2SDZrm:
+ case X86::CVTSI2SSrm: case X86::VCVTSI2SSrm: case X86::VCVTSI2SSZrm:
+ case X86::CVTSI642SDrm: case X86::VCVTSI642SDrm: case X86::VCVTSI642SDZrm:
+ case X86::CVTSI642SSrm: case X86::VCVTSI642SSrm: case X86::VCVTSI642SSZrm:
+ case X86::CVTSS2SDrm: case X86::VCVTSS2SDrm: case X86::VCVTSS2SDZrm:
+ case X86::CVTSD2SSrm: case X86::VCVTSD2SSrm: case X86::VCVTSD2SSZrm:
+ // AVX512 added unsigned integer conversions.
+ case X86::VCVTTSD2USI64Zrm:
+ case X86::VCVTTSD2USIZrm:
+ case X86::VCVTTSS2USI64Zrm:
+ case X86::VCVTTSS2USIZrm:
+ case X86::VCVTUSI2SDZrm:
+ case X86::VCVTUSI642SDZrm:
+ case X86::VCVTUSI2SSZrm:
+ case X86::VCVTUSI642SSZrm:
// Loads to register don't set flags.
case X86::MOV8rm:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49313.155450.patch
Type: text/x-patch
Size: 1867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180713/e8396e7d/attachment.bin>
More information about the llvm-commits
mailing list