[llvm] e096a03 - [Inliner] Remove -update-return-attrs flag
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 21 14:39:41 PDT 2023
Author: Arthur Eubanks
Date: 2023-04-21T14:39:29-07:00
New Revision: e096a03fdbbe6e10aa08b63b6ee20f9008d1b644
URL: https://github.com/llvm/llvm-project/commit/e096a03fdbbe6e10aa08b63b6ee20f9008d1b644
DIFF: https://github.com/llvm/llvm-project/commit/e096a03fdbbe6e10aa08b63b6ee20f9008d1b644.diff
LOG: [Inliner] Remove -update-return-attrs flag
This is by default on and I don't see any reason to turn it off. There's also no testing of it.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D148956
Added:
Modified:
llvm/lib/Transforms/Utils/InlineFunction.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 8794a6d4be9d0..b372a24e93b12 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -99,10 +99,6 @@ PreserveAlignmentAssumptions("preserve-alignment-assumptions-during-inlining",
cl::init(false), cl::Hidden,
cl::desc("Convert align attributes to assumptions during inlining."));
-static cl::opt<bool> UpdateReturnAttributes(
- "update-return-attrs", cl::init(true), cl::Hidden,
- cl::desc("Update return attributes on calls within inlined body"));
-
static cl::opt<unsigned> InlinerAttributeWindow(
"max-inst-checked-for-throw-during-inlining", cl::Hidden,
cl::desc("the maximum number of instructions analyzed for may throw during "
@@ -1368,9 +1364,6 @@ static AttrBuilder IdentifyValidAttributes(CallBase &CB) {
}
static void AddReturnAttributes(CallBase &CB, ValueToValueMapTy &VMap) {
- if (!UpdateReturnAttributes)
- return;
-
AttrBuilder Valid = IdentifyValidAttributes(CB);
if (!Valid.hasAttributes())
return;
More information about the llvm-commits
mailing list