diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2021-04-08 17:28:57 +0200 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2021-04-08 17:28:57 +0200 |
commit | 2cb8c10342ee5d040725abb1166feb92a64c7df6 (patch) | |
tree | 31de5c7b73401b3d7dfb9057e8a4d2e283fe83da /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 466fab5c9410abb79f1a70c5075147e9a768124e (diff) | |
download | llvm-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.cpp | 3 |
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) { |