diff options
author | Peiming Liu <peiming@google.com> | 2023-06-07 23:34:44 +0000 |
---|---|---|
committer | Peiming Liu <peiming@google.com> | 2023-06-09 17:03:15 +0000 |
commit | 853d704fd0c4744731870df67ade7249d5440438 (patch) | |
tree | d06e3e43daa62da9f197ce6ccacf45cc4a40ccff /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | dcda3e67e729ab8f2566563bd26f6ec018ce21d7 (diff) | |
download | llvm-853d704fd0c4744731870df67ade7249d5440438.zip llvm-853d704fd0c4744731870df67ade7249d5440438.tar.gz llvm-853d704fd0c4744731870df67ade7249d5440438.tar.bz2 |
[mlir][sparse] moving inbound check for slice driven loop into before block of the WhileOp
This patch changes the while loop generated for iterating over a fully reduced sparse level with affine index expression.
Before:
```
cont = true
while (cont) {
if (inBound()) {
....
cont = true;
} else {
cont = false;
}
}
```
After:
```
while(inBound()) {
....
}
```
Reviewed By: K-Wu
Differential Revision: https://reviews.llvm.org/D152463
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions