Skip to content

Commit 2026950

Browse files
committed
[docs] Fix inaccuracies and typos.
1 parent b825568 commit 2026950

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/CompilerPerformance.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ improvement:
290290
sometimes behave super-linearly or even exponentially.
291291
- Periodically the analysis phase of a SIL optimization fails to cache
292292
overlapping subproblems, causing a super-linear slowdown.
293-
- Some SIL-to-IR lowerings (eg. large value types, ARC operations) can
294-
generate too much LLVM IR, increasing the time spent in LLVM.
293+
- Some SIL-to-IR lowerings (eg. large value types) can generate too much
294+
LLVM IR, increasing the time spent in LLVM.
295295

296296
(Subsystem experts: please add further areas of concern here.)
297297

@@ -424,8 +424,7 @@ scripted; the main disadvantages are that it lacks any sort of GUI and only runs
424424
on Linux, so you can't use it to diagnose problems in builds that need macOS or
425425
iOS frameworks or run under `xcodebuild`.
426426

427-
Perf is
428-
documented
427+
Perf is documented
429428
[on the kernel wiki](https://perf.wiki.kernel.org/index.php/Main_Page) as well
430429
as on [Brendan Gregg's website](http://www.brendangregg.com/perf.html).
431430

@@ -831,7 +830,7 @@ VNEW=$(count_instructions ${NEW} -frontend -c ${INPUT})
831830
VDIFF=$((${VNEW} - ${VOLD}))
832831
if [ ${VDIFF} -gt ${THRESHOLD} ]
833832
then
834-
# Interestin
833+
# Interesting
835834
exit 0
836835
else
837836
# Not interesting
@@ -1096,7 +1095,7 @@ code-generation tool. The process is straightforward:
10961095
Statistics are easy to add to a file, it takes only a few simple steps:
10971096
- Add a define like `#define DEBUG_TYPE "subsystem-name"` to the file
10981097
- Add an include like `#include <swift/Basic/Statistic.h>` to the file
1099-
- Add `SWIFT_FUNC_STAT;` to the entry of any function you want to measure
1098+
- Add `SWIFT_FUNC_STAT;` to the first line of a function to measure
11001099
- Optionally, add separate `STATISTIC(SomeStat, "description");`
11011100
definitions and manually increment `SomeStat++;` where you like;
11021101
`SWIFT_FUNC_STAT;` is just a short-form of declaring and incrementing a

0 commit comments

Comments
 (0)