[PATCH] D106701: [clang] Add -falign-loops=N where N is a power of 2
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 23 12:34:28 PDT 2021
MaskRay created this revision.
MaskRay added reviewers: compnerd, craig.topper, rsmith.
Herald added subscribers: ormris, StephenFan, frasercrmck, dexonsmith, dang, luismarques, apazos, sameer.abuasal, pengfei, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
MaskRay requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
GCC supports multiple forms of -falign-loops=. This patch implements the
simplest but the most useful form where N is a power of 2.
A lib/CodeGen/CommandFlags.cpp option "-align-loops=" is added.
It can replace -x86-experimental-pref-loop-alignment=.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106701
Files:
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/falign-loops.c
llvm/include/llvm/CodeGen/CommandFlags.h
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/CommandFlags.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/test/CodeGen/RISCV/loop-alignment.ll
llvm/test/CodeGen/X86/innermost-loop-alignment.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106701.361303.patch
Type: text/x-patch
Size: 12429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210723/6ebfeda6/attachment.bin>
More information about the llvm-commits
mailing list