[Mlir-commits] [mlir] [MLIR][Presburger] Make IntegerRelation::convertVarKind consistent wi… (PR #67323)
Kunwar Grover
llvmlistbot at llvm.org
Mon Sep 25 05:48:44 PDT 2023
================
@@ -2260,8 +2273,7 @@ void IntegerRelation::intersectRange(const IntegerPolyhedron &poly) {
void IntegerRelation::inverse() {
unsigned numRangeVars = getNumVarKind(VarKind::Range);
- convertVarKind(VarKind::Domain, 0, getVarKindEnd(VarKind::Domain),
- VarKind::Range);
+ convertVarKind(VarKind::Domain, 0, getNumDomainVars(), VarKind::Range);
----------------
Groverkss wrote:
nit: I prefer getNumVarKind
https://github.com/llvm/llvm-project/pull/67323
More information about the Mlir-commits
mailing list