[llvm-branch-commits] [llvm] [AArch64][PAC] Eliminate excessive MOVs when computing blend (PR #115185)

Daniil Kovalev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 11 00:00:34 PST 2024


================
@@ -163,8 +163,15 @@ class AArch64AsmPrinter : public AsmPrinter {
   // Emit the sequence for AUT or AUTPAC.
   void emitPtrauthAuthResign(const MachineInstr *MI);
 
-  // Emit the sequence to compute a discriminator into x17, or reuse AddrDisc.
-  unsigned emitPtrauthDiscriminator(uint16_t Disc, unsigned AddrDisc);
+  // Emit the sequence to compute the discriminator.
+  // ScratchReg should be x16/x17.
----------------
kovdan01 wrote:

Probably it's worth adding an assertion for this pre-condition (I might be missing smth but I don't see it)

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


More information about the llvm-branch-commits mailing list