[all-commits] [llvm/llvm-project] ca72b0: [CodeGen] Use the TII hook for Noop insertion in B...

Daniel Hoekwater via All-commits all-commits at lists.llvm.org
Fri Aug 18 12:40:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca72b0a70923ebb59a114ce497794d58f31457a3
      https://github.com/llvm/llvm-project/commit/ca72b0a70923ebb59a114ce497794d58f31457a3
  Author: Daniel Hoekwater <hoekwater at google.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M llvm/lib/CodeGen/BasicBlockSections.cpp
    M llvm/lib/Target/X86/X86InstrInfo.cpp
    M llvm/lib/Target/X86/X86InstrInfo.h

  Log Message:
  -----------
  [CodeGen] Use the TII hook for Noop insertion in BBSections (NFC)

Refactor BasicBlockSections to use the target-specific noop insertion
hook from TargetInstrInfo instead of building it ourselves. Using the
TII hook is both cleaner and makes it easier to extend BBSections to
non-X86 targets.

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




More information about the All-commits mailing list