Commit d9500f5
committed
[OpenMP] Fix the OpenMPOpt pass incorrectly optimizing if definition was missing
Summary:
This code is intended to block transformations if the call isn't
present, however the way it's coded it silently lets it pass if the
definition doesn't exist at all. This previously was always valid since
we included the runtime as one giant blob so everything was always
there, but now that we want to move towards separate ones, it's not
quite correct.1 parent 7811c20 commit d9500f5
File tree
3 files changed
+50
-435
lines changed- llvm
- lib
- Passes
- Transforms/IPO
- test/Transforms/OpenMP
3 files changed
+50
-435
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
| 972 | + | |
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| |||
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | | - | |
| 1140 | + | |
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| |||
5792 | 5792 | | |
5793 | 5793 | | |
5794 | 5794 | | |
| 5795 | + | |
5795 | 5796 | | |
5796 | 5797 | | |
5797 | 5798 | | |
| |||
5871 | 5872 | | |
5872 | 5873 | | |
5873 | 5874 | | |
| 5875 | + | |
5874 | 5876 | | |
5875 | 5877 | | |
5876 | 5878 | | |
| |||
0 commit comments