Previously, the canonicalizer to create ifs from selects would only work
if the if did not have a body other than yielding. This patch upgrade the functionality
to be able to create selects from any if result whose operands are not defined
within the body.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SCF/SCF.cpp | ||
---|---|---|
1378 | Nit: use braces symmetrically, i.e., if the "then" part has braces so should the "else" part even if it's trivial. |
Nit: use braces symmetrically, i.e., if the "then" part has braces so should the "else" part even if it's trivial.