Commit 6369ff1
committed
[BoundsSafety] Remove
The implementation was a bit hacky and interacted badly with the
hot-cold splitting pass. So it is going to be removed in favor of a
different implementation that's simpler.
I also investated why
`clang/test/BoundsSafety/CodeGen/unique-trap-blocks-O2.c` broke (rdar://150559639).
It turns outthat the "trap blocks" started being unintentionally split
by the hot-cold splitting pass because in upstream we started adding
branch profiling weights
(llvm#134310) which the hot-cold
splitting pass used as a signal to split the "trap blocks" into their
own function (by-passing the logic I originally added to prevent the
splitting). While we could fix this it would be very fragile and given
that we are removing the implementation anyway it doesn't matter
anymore.
rdar://158088410
(cherry picked from commit 8c4e017)
Conflicts:
clang/test/BoundsSafety-legacy-checks/CodeGen/unique-trap-blocks-O0-O2-opt-disabled.c
clang/test/BoundsSafety/CodeGen/unique-trap-blocks-O0-O2-opt-disabled.c-funique-traps flag and its implementation1 parent c8d44a5 commit 6369ff1
File tree
12 files changed
+2
-516
lines changed- clang
- include/clang
- Basic
- Driver
- lib
- CodeGen
- Driver/ToolChains
- test
- BoundsSafety-legacy-checks/CodeGen
- BoundsSafety/CodeGen
- llvm
- lib/Transforms/IPO
- test/Transforms/HotColdSplit
12 files changed
+2
-516
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | 335 | | |
340 | 336 | | |
341 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4396 | 4396 | | |
4397 | 4397 | | |
4398 | 4398 | | |
4399 | | - | |
4400 | | - | |
4401 | | - | |
4402 | | - | |
4403 | | - | |
4404 | | - | |
4405 | | - | |
4406 | | - | |
4407 | | - | |
4408 | | - | |
4409 | 4399 | | |
4410 | 4400 | | |
4411 | 4401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4625 | 4625 | | |
4626 | 4626 | | |
4627 | 4627 | | |
4628 | | - | |
4629 | 4628 | | |
4630 | 4629 | | |
4631 | 4630 | | |
| |||
4654 | 4653 | | |
4655 | 4654 | | |
4656 | 4655 | | |
4657 | | - | |
4658 | | - | |
4659 | | - | |
4660 | | - | |
4661 | | - | |
| 4656 | + | |
4662 | 4657 | | |
4663 | 4658 | | |
4664 | 4659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | 322 | | |
362 | 323 | | |
363 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2659 | 2659 | | |
2660 | 2660 | | |
2661 | 2661 | | |
2662 | | - | |
2663 | | - | |
2664 | | - | |
2665 | | - | |
2666 | | - | |
2667 | | - | |
2668 | | - | |
2669 | 2662 | | |
2670 | 2663 | | |
2671 | 2664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | 685 | | |
689 | 686 | | |
690 | 687 | | |
| |||
1159 | 1156 | | |
1160 | 1157 | | |
1161 | 1158 | | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | 1159 | | |
1168 | 1160 | | |
1169 | 1161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7096 | 7096 | | |
7097 | 7097 | | |
7098 | 7098 | | |
7099 | | - | |
7100 | | - | |
7101 | | - | |
7102 | 7099 | | |
7103 | 7100 | | |
7104 | 7101 | | |
| |||
Lines changed: 0 additions & 105 deletions
This file was deleted.
0 commit comments