Skip to content

Commit 90f1d0a

Browse files
committed
set legacy PM UniformityInfoWrapperPass isCFGOnly to false
1 parent b8c4eea commit 90f1d0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Analysis/UniformityAnalysis.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ INITIALIZE_PASS_BEGIN(UniformityInfoWrapperPass, "uniformity",
150150
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
151151
INITIALIZE_PASS_DEPENDENCY(CycleInfoWrapperPass)
152152
INITIALIZE_PASS_DEPENDENCY(TargetTransformInfoWrapperPass)
153+
// Though Uniformity Analysis depends on the CFG,
154+
// it also needs to be invalidated if values are changed, so isCFGOnly: false.
155+
// See NOTE on updatability at the start of GenericUniformityImpl.h
153156
INITIALIZE_PASS_END(UniformityInfoWrapperPass, "uniformity",
154-
"Uniformity Analysis", true, true)
157+
"Uniformity Analysis", false, true)
155158

156159
void UniformityInfoWrapperPass::getAnalysisUsage(AnalysisUsage &AU) const {
157160
AU.setPreservesAll();

0 commit comments

Comments
 (0)