diff options
author | Guray Ozen <guray.ozen@gmail.com> | 2022-12-02 16:34:58 +0100 |
---|---|---|
committer | Guray Ozen <guray.ozen@gmail.com> | 2022-12-05 12:57:20 +0100 |
commit | 12cc8e7310474c2b3231e4ebba8e555e31cd3eaf (patch) | |
tree | 3fd42a290f6cce1805788424ebc78bff55fe8376 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | b0f78769178ebb5e0691aca5143fead7f79ee55c (diff) | |
download | llvm-12cc8e7310474c2b3231e4ebba8e555e31cd3eaf.zip llvm-12cc8e7310474c2b3231e4ebba8e555e31cd3eaf.tar.gz llvm-12cc8e7310474c2b3231e4ebba8e555e31cd3eaf.tar.bz2 |
[mlir] Fix infinite loop in collapse
Incrementing `counter` variable is inside the if statement. If the code does not enter there, the while loop will iterate infinitely. This revision moves the codes outside of if statement.
Reviewed By: mravishankar
Differential Revision: https://reviews.llvm.org/D139005
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions