[all-commits] [llvm/llvm-project] dc3dba: [X86] Move findDeadCallerSavedReg() into X86Regist...

Scott Constable via All-commits all-commits at lists.llvm.org
Wed Oct 7 18:56:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dc3dba7dbdab207a8e55171860d3caa712aa5dfc
      https://github.com/llvm/llvm-project/commit/dc3dba7dbdab207a8e55171860d3caa712aa5dfc
  Author: Scott Constable <scott.d.constable at intel.com>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86FrameLowering.cpp
    M llvm/lib/Target/X86/X86RegisterInfo.cpp
    M llvm/lib/Target/X86/X86RegisterInfo.h

  Log Message:
  -----------
  [X86] Move findDeadCallerSavedReg() into X86RegisterInfo

The findDeadCallerSavedReg() function has utility outside of X86FrameLowering.cpp

Differential Revision: https://reviews.llvm.org/D88924


  Commit: ad4313fc833d2a1b5ae4b3ffe92366ba61a1232c
      https://github.com/llvm/llvm-project/commit/ad4313fc833d2a1b5ae4b3ffe92366ba61a1232c
  Author: Scott Constable <scott.d.constable at intel.com>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

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

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

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.

Differential Revision: https://reviews.llvm.org/D88925


Compare: https://github.com/llvm/llvm-project/compare/93db4a8ce626...ad4313fc833d


More information about the All-commits mailing list