[PATCH] D130188: [DependenceAnalysis][PR56275] Normalize dependence analysis results to be non-negative when required
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 13:12:21 PDT 2022
Meinersbur added inline comments.
================
Comment at: llvm/lib/Analysis/DependenceAnalysis.cpp:124-127
+static cl::opt<bool> NormalizeResults(
+ "da-normalize-results", cl::init(false), cl::Hidden,
+ cl::desc("Normalize the direction and distance vectors to make "
+ "them non-negative."));
----------------
Meinersbur wrote:
> [serious] This flag breaks any code that expects non-normalized dependences.
An option for the `print-da` pass would be the better approach. Alternatively, if a dependency is normalized, also print the normalized dependence using a different output format. For instance:
```
da analyze - flow [> <>]!
da normalized - anti [< <>]!
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130188/new/
https://reviews.llvm.org/D130188
More information about the llvm-commits
mailing list