Normalize some of the division and inequality expressions used,
which can improve performance. Also deduplicate some of the
normalization functionality throughout the Presburger library.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Analysis/Presburger/Simplex.cpp | ||
---|---|---|
150–151 | Why not just use Matrix::normalizeRow? https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Analysis/Presburger/Matrix.h#L127 |
mlir/lib/Analysis/Presburger/Simplex.cpp | ||
---|---|---|
150–151 | Good point. I removed SimplexBase::normalizeRow and replaced it with Matrix::normalizeRow. I also replaced Matrix::normalizeRow's implementation with just a call through to normalizeRange |
Why not just use Matrix::normalizeRow?
https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Analysis/Presburger/Matrix.h#L127