[PATCH] D88925: [X86] Fix bug in -mlvi-cfi that may clobber a live register

Scott Constable via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 14:01:00 PDT 2020


sconstab created this revision.
sconstab added a reviewer: craig.topper.
Herald added subscribers: pengfei, jfb, hiraditya.
Herald added a project: LLVM.
sconstab requested review of this revision.

Fix for this bug: https://bugs.llvm.org/show_bug.cgi?id=47740

The fix uses the existing `findDeadCallerSavedReg()` function instead of a hacky heuristic to find a scratch register to clobber.


https://reviews.llvm.org/D88925

Files:
  llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
  llvm/test/CodeGen/X86/lvi-hardening-ret.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88925.296542.patch
Type: text/x-patch
Size: 5093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201006/afd2589a/attachment.bin>


More information about the llvm-commits mailing list