Skip to content

Commit e096a03

Browse files
committed
[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
1 parent 03bf59d commit e096a03

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/Transforms/Utils/InlineFunction.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ PreserveAlignmentAssumptions("preserve-alignment-assumptions-during-inlining",
9999
cl::init(false), cl::Hidden,
100100
cl::desc("Convert align attributes to assumptions during inlining."));
101101

102-
static cl::opt<bool> UpdateReturnAttributes(
103-
"update-return-attrs", cl::init(true), cl::Hidden,
104-
cl::desc("Update return attributes on calls within inlined body"));
105-
106102
static cl::opt<unsigned> InlinerAttributeWindow(
107103
"max-inst-checked-for-throw-during-inlining", cl::Hidden,
108104
cl::desc("the maximum number of instructions analyzed for may throw during "
@@ -1368,9 +1364,6 @@ static AttrBuilder IdentifyValidAttributes(CallBase &CB) {
13681364
}
13691365

13701366
static void AddReturnAttributes(CallBase &CB, ValueToValueMapTy &VMap) {
1371-
if (!UpdateReturnAttributes)
1372-
return;
1373-
13741367
AttrBuilder Valid = IdentifyValidAttributes(CB);
13751368
if (!Valid.hasAttributes())
13761369
return;

0 commit comments

Comments
 (0)