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.
Paths
| Differential D88925
[X86] Fix bug in -mlvi-cfi that may clobber a live register ClosedPublic Authored by sconstab on Oct 6 2020, 2:00 PM.
Details Summary 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.
Diff Detail
Event Timelinesconstab added a parent revision: D88924: [X86] Move findDeadCallerSavedReg() into X86RegisterInfo.Oct 6 2020, 3:20 PM This revision is now accepted and ready to land.Oct 6 2020, 8:26 PM Closed by commit rGad4313fc833d: [X86] Fix bug in -mlvi-cfi that may clobber a live register (authored by sconstab, committed by craig.topper). · Explain WhyOct 7 2020, 6:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 296852 llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
llvm/test/CodeGen/X86/lvi-hardening-ret.ll
|