Commit 1ce1fc9
Skip llvm.global.annotations when applying referenced-indirectly attribute
When IGC is checking if function can be accessed indirecty it iterates
over all function users looking for user that is not a function call.
But when pointer to given function is in @llvm.global.annotations it
will also be found and function will be marked as "referenced-indirectly",
despite @llvm.global.annotations being used only for metadata and removed
couple passes later in Dead Global Elimination Pass.1 parent 0485266 commit 1ce1fc9
File tree
2 files changed
+65
-0
lines changed- IGC
- AdaptorCommon
- Compiler/tests/ProcessFuncAttributes
2 files changed
+65
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
414 | 438 | | |
415 | 439 | | |
416 | 440 | | |
| |||
436 | 460 | | |
437 | 461 | | |
438 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
439 | 466 | | |
440 | 467 | | |
441 | 468 | | |
| |||
599 | 626 | | |
600 | 627 | | |
601 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
602 | 634 | | |
603 | 635 | | |
604 | 636 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments