[all-commits] [llvm/llvm-project] 42f736: [GISel] Check useLoadStackGuardNode() before gener...

Kai Nacke via All-commits all-commits at lists.llvm.org
Tue Jul 12 08:45:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42f7364fcb239a4d57b54a20244a1564314455a8
      https://github.com/llvm/llvm-project/commit/42f7364fcb239a4d57b54a20244a1564314455a8
  Author: Kai Nacke <kai.peter.nacke at ibm.com>
  Date:   2022-07-12 (Tue, 12 Jul 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    A llvm/test/CodeGen/PowerPC/GlobalISel/ppc-irtranslator-stackprotect.ll

  Log Message:
  -----------
  [GISel] Check useLoadStackGuardNode() before generating LOAD_STACK_GUARD

When lowering llvm::stackprotect intrinsic, the SDAG implementation
checks useLoadStackGuardNode() to either create a LOAD_STACK_GUARD or use
the first argument of the intrinsic. This check is not present in the
IRTranslator, which results in always generating a LOAD_STACK_GUARD even
if the target does not support it.

Reviewed By: arsenm

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




More information about the All-commits mailing list