[PATCH] D72463: [Driver][X86] Add -malign-branch* and -malign-branch-within-32B-boundaries
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 10 01:00:37 PST 2020
MaskRay added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2040
+ if (Value.getAsInteger(10, AlignBranchBoundary) ||
+ AlignBranchBoundary < 16 || !llvm::isPowerOf2_64(AlignBranchBoundary)) {
+ D.Diag(diag::err_drv_invalid_argument_to_option)
----------------
skan wrote:
> Any reason for precluding 16?
I did not preclude 16.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2053
+ << Value << A->getOption().getName();
+ AlignBranch = StringRef();
+ }
----------------
skan wrote:
> AlignBranch = StringRef() seems unnecessary.
This comment was for the previous diff.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72463/new/
https://reviews.llvm.org/D72463
More information about the cfe-commits
mailing list