The original code is more readable because the goal is to check if the given
value does *not* lie in the range. It is harder to understand this by
reading the rewritten code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Analysis/Presburger/Utils.cpp | ||
|---|---|---|
| 123 | You haven't changed the expression here? | |
Comment Actions
LG after you actually revert the line :)
| mlir/lib/Analysis/Presburger/Utils.cpp | ||
|---|---|---|
| 123 | That is, you intended to restore if (!(c >= 0 && c <= divisor - 1)) I think | |
| mlir/lib/Analysis/Presburger/Utils.cpp | ||
|---|---|---|
| 123 | Yes haha, thanks :) | |
You haven't changed the expression here?