27ba009a0bf743233c2764337dd7a9a033075ddb
SWDEV-97737 - Complib: fix unrolling preferences on the online path
The TargetTransformInfo needs to be added to pass manager before other passes now.
Otherwise the first pass which requires this analysis will create a default TTI on initialization
and when real HSAILTTIImpl will be added to PM, PM->add() will silently delete this new analysis pass
on the basis that a pass with such ID already exists in the pass manager.
That is in fact concern for all analysis passes.
Testing: smoke, precheckin, LDSReadSpeed
Reviewed by Daniil Fukalov
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.hpp#6 edit
[ROCm/clr commit: a46f607eb0]
Description
No description provided
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Other
1.1%