In order to explore different variants of reassociation current implementation uses "swap in a loop" approach. Unfortunately, the implementation is more complicated than it could be. This is an attempt to streamline the code. New approach is to extract core functionality into a helper function and call it explicitly as many times as required.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
clang-format: please reformat the code
- [&](auto *U) { - return U != I && - !(U->hasOneUser() && *U->users().begin() == I); - }) || + [&](auto *U) { + return U != I && + !(U->hasOneUser() && *U->users().begin() == I); + }) ||