27ba009a0b
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]