[llvm] [X86] X86FixupVectorConstants - shrink vector load to movsd/movsd/movd/movq 'zero upper' instructions (PR #79000)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 02:04:32 PST 2024


================
@@ -263,6 +290,34 @@ bool X86FixupVectorConstantsPass::processInstruction(MachineFunction &MF,
     return false;
   };
 
+  auto ConvertToZeroUpper = [&](unsigned OpUpper64, unsigned OpUpper32,
+                                unsigned OperandNo) {
----------------
RKSimon wrote:

Not really, unless we ever have the need to support avx512 predicate move loads?

https://github.com/llvm/llvm-project/pull/79000


More information about the llvm-commits mailing list