[PATCH] D47700: DivergenceAnalysis: added debug output
Tim Renouf via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 11 10:04:58 PDT 2018
tpr added inline comments.
================
Comment at: lib/Analysis/DivergenceAnalysis.cpp:304-307
+ DEBUG(
+ dbgs() << "\nAfter divergence analysis on " << F.getName() << ":\n";
+ print(dbgs(), F.getParent())
+ );
----------------
arsenm wrote:
> Doesn't -print-after=divergence already get you this?
No:
1. -print-after=divergence (or -print-after-all) does not print anything after this pass, perhaps because it is an analysis that says it has not modified the code.
2. Even if it did, it would surely be using the standard pass printer that doesn't know anything about annotating with DIVERGENT:.
Repository:
rL LLVM
https://reviews.llvm.org/D47700
More information about the llvm-commits
mailing list