Skip to content

Commit f062af3

Browse files
wpangfxbot
authored andcommitted
Re-write GenericAddressAnalysis not using InstVisitor so that it
exits early. Hide implementations in cpp files. Change-Id: Ic5cd725d74398227ef107ec9452b0a090626099d
1 parent 4f80c0b commit f062af3

File tree

3 files changed

+245
-354
lines changed

3 files changed

+245
-354
lines changed

IGC/AdaptorOCL/UnifyIROCL.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ static void CommonOCLBasedPasses(
351351
mpm.add(new ExtensionFuncsAnalysis());
352352
mpm.add(new ExtensionArgAnalysis());
353353
mpm.add(new DeviceEnqueueFuncsAnalysis());
354-
355-
mpm.add(new GenericAddressAnalysis());
354+
mpm.add(createGenericAddressAnalysisPass());
356355
if (IGC_GET_FLAG_VALUE(FunctionControl) != FLAG_FCALL_FORCE_INLINE)
357356
{
358357
mpm.add(new BuiltinCallGraphAnalysis());
@@ -418,7 +417,7 @@ static void CommonOCLBasedPasses(
418417
// (optimizeIR()) will fully take advantage of the flags.
419418
mpm.add(new SetFastMathFlags());
420419

421-
mpm.add(new GenericAddressDynamicResolution());
420+
mpm.add(createGenericAddressDynamicResolutionPass());
422421

423422
mpm.add(new FixResourcePtr());
424423

0 commit comments

Comments
 (0)