Skip to content

Commit ac4737b

Browse files
author
Davide Italiano
committed
[SILGen] When emitting an apply, don't decode the dbgloc unconditionally.
Turns out it's really expensive and not really needed. On my machine the testcase reported in SR-7691 goes down from 24 seconds to 2 seconds after this change. <rdar://problem/40258978>
1 parent a4287e4 commit ac4737b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/SILGen/SILGenApply.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4158,7 +4158,6 @@ RValue SILGenFunction::emitApply(ResultPlanPtr &&resultPlan,
41584158
}
41594159

41604160
// Emit the raw application.
4161-
loc.decodeDebugLoc(SGM.M.getASTContext().SourceMgr);
41624161
SILValue rawDirectResult = emitRawApply(
41634162
*this, loc, fn, subs, args, substFnType, options, indirectResultAddrs);
41644163

0 commit comments

Comments
 (0)