Skip to content

Commit

Permalink
Revert "Reduce the number of attributes attached to each function"
Browse files Browse the repository at this point in the history
This reverts commit 053dc95. It causes perf regressions - see discussion in D97116.
  • Loading branch information
davidbolvansky committed Apr 8, 2021
1 parent 466fab5 commit 2cb8c10
Show file tree
Hide file tree
Showing 7 changed files with 6,083 additions and 6,770 deletions.
3 changes: 1 addition & 2 deletions clang/lib/CodeGen/CodeGenFunction.cpp
Expand Up @@ -493,8 +493,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
// 4. Width of vector arguments and return types for this function.
// 5. Width of vector aguments and return types for functions called by this
// function.
if (LargestVectorWidth)
CurFn->addFnAttr("min-legal-vector-width", llvm::utostr(LargestVectorWidth));
CurFn->addFnAttr("min-legal-vector-width", llvm::utostr(LargestVectorWidth));

// Add vscale attribute if appropriate.
if (getLangOpts().ArmSveVectorBits) {
Expand Down
11,960 changes: 5,711 additions & 6,249 deletions clang/test/CodeGen/aarch64-neon-ldst-one.c

Large diffs are not rendered by default.

587 changes: 251 additions & 336 deletions clang/test/CodeGen/aarch64-neon-scalar-x-indexed-elem.c

Large diffs are not rendered by default.

0 comments on commit 2cb8c10

Please sign in to comment.