aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDávid Bolvanský <david.bolvansky@gmail.com>2021-04-08 17:28:57 +0200
committerDávid Bolvanský <david.bolvansky@gmail.com>2021-04-08 17:28:57 +0200
commit2cb8c10342ee5d040725abb1166feb92a64c7df6 (patch)
tree31de5c7b73401b3d7dfb9057e8a4d2e283fe83da /clang/lib/CodeGen/CodeGenFunction.cpp
parent466fab5c9410abb79f1a70c5075147e9a768124e (diff)
downloadllvm-2cb8c10342ee5d040725abb1166feb92a64c7df6.zip
llvm-2cb8c10342ee5d040725abb1166feb92a64c7df6.tar.gz
llvm-2cb8c10342ee5d040725abb1166feb92a64c7df6.tar.bz2
Revert "Reduce the number of attributes attached to each function"
This reverts commit 053dc95839b3b8a36db46f8c419e36e632e989cd. It causes perf regressions - see discussion in D97116.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 600312e..5ff969d 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -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) {