[PATCH] D49313: [X86][SLH] Add VEX and EVEX conversion instructions to isDataInvariantLoad
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 15:47:00 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL337066: [X86][SLH] Add VEX and EVEX conversion instructions to isDataInvariantLoad (authored by ctopper, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D49313?vs=155450&id=155522#toc
Repository:
rL LLVM
https://reviews.llvm.org/D49313
Files:
llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp
Index: llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp
+++ llvm/trunk/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.155522.patch
Type: text/x-patch
Size: 1900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180713/1e661eca/attachment.bin>
More information about the llvm-commits
mailing list