[llvm] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 13:38:14 PDT 2023


================
@@ -106,9 +111,14 @@ static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB,
           CSI, [&](CalleeSavedInfo &CSR) { return CSR.getReg() == RAReg; }))
     return;
 
+  const RISCVInstrInfo *TII = STI.getInstrInfo();
+  if (STI.hasFeature(RISCV::FeatureStdExtZicfiss)) {
----------------
ilovepi wrote:

Ah, you're totally right. I read that bit incorrectly. Thanks for pointing that out.

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


More information about the llvm-commits mailing list