Commit 556b0fb
committed
[SYCL] Restrict collection of information for optimization record
Collect information for optimization record only if the optmization
record is saved by user (i.e. -fsave-optimization-record or
-opt-record-file is passed). This patch prevents unecessary calls
to opt-report handlers when not required.
I couldn't think of a way to add a test for this since there is no
change in output. Information is collected when the flag is passed
and emitted into optimization record. Information is no longer
collected when there is no optimization record.
This is a follow up to intel#3492
and intel#3730
Signed-off-by: Elizabeth Andrews <[email protected]>1 parent 256d2cc commit 556b0fb
File tree
5 files changed
+53
-26
lines changed- clang
- include/clang
- Basic
- Driver
- lib
- CodeGen
- Frontend
- Sema
5 files changed
+53
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
473 | 477 | | |
474 | 478 | | |
475 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5897 | 5897 | | |
5898 | 5898 | | |
5899 | 5899 | | |
5900 | | - | |
| 5900 | + | |
5901 | 5901 | | |
5902 | 5902 | | |
5903 | 5903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
1625 | 1626 | | |
1626 | 1627 | | |
1627 | 1628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1946 | 1946 | | |
1947 | 1947 | | |
1948 | 1948 | | |
| 1949 | + | |
| 1950 | + | |
1949 | 1951 | | |
1950 | 1952 | | |
1951 | 1953 | | |
| |||
3318 | 3320 | | |
3319 | 3321 | | |
3320 | 3322 | | |
| 3323 | + | |
| 3324 | + | |
3321 | 3325 | | |
3322 | 3326 | | |
3323 | 3327 | | |
| |||
3617 | 3621 | | |
3618 | 3622 | | |
3619 | 3623 | | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
3620 | 3630 | | |
3621 | 3631 | | |
3622 | 3632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3669 | 3669 | | |
3670 | 3670 | | |
3671 | 3671 | | |
3672 | | - | |
3673 | | - | |
3674 | | - | |
3675 | | - | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
3676 | 3686 | | |
3677 | 3687 | | |
3678 | 3688 | | |
3679 | 3689 | | |
3680 | 3690 | | |
3681 | 3691 | | |
3682 | | - | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
3683 | 3695 | | |
3684 | 3696 | | |
3685 | 3697 | | |
| |||
0 commit comments