[all-commits] [llvm/llvm-project] a19443: [CodeGen] Add -align-loops

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Aug 4 12:45:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1944386156dbbfae15dfc606a3728e08ac92cfe
      https://github.com/llvm/llvm-project/commit/a1944386156dbbfae15dfc606a3728e08ac92cfe
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-08-04 (Wed, 04 Aug 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/CommandFlags.h
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/include/llvm/Target/TargetOptions.h
    M llvm/lib/CodeGen/CommandFlags.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    A llvm/test/CodeGen/RISCV/align-loops.ll
    M llvm/test/CodeGen/X86/innermost-loop-alignment.ll

  Log Message:
  -----------
  [CodeGen] Add -align-loops

to `lib/CodeGen/CommandFlags.cpp`. It can replace
-x86-experimental-pref-loop-alignment=.

The loop alignment is only used by MachineBlockPlacement.
The implementation uses a new `llvm::TargetOptions` for now, as
an IR function attribute/module flags metadata may be overkill.

This is the llvm part of D106701.




More information about the All-commits mailing list