[PATCH] D99377: [PowerPC] Add ROP Protection to prologue and epilogue

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 5 13:32:16 PDT 2021


stefanp updated this revision to Diff 335314.
stefanp added a comment.

Updated test case to include -O0.

Initially I agreed that we needed to add the CreateStackObject to FastISEL as
well. However, FastISEL is only triggered when

  SelectionDAGISel::runOnMachineFunction(MF);

is called. Since this CreateStackObject comes before that call it will be done
for ROP at all opt levels.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99377/new/

https://reviews.llvm.org/D99377

Files:
  llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h
  llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
  llvm/lib/Target/PowerPC/PPCRegisterInfo.h
  llvm/test/CodeGen/PowerPC/ppc64-rop-protection.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99377.335314.patch
Type: text/x-patch
Size: 172664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210405/4d0090c5/attachment-0001.bin>


More information about the llvm-commits mailing list