Querying the type trait is something that can be done at compile time. So,
replace the runtime if with if constexpr.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D139264
[MLIR] Use `if constexpr` in `StorageUniquer` and `IR/AffineExpr` ClosedPublic Authored by jloser on Dec 3 2022, 5:03 PM.
Details Summary Querying the type trait is something that can be done at compile time. So,
Diff Detail
Event Timelinejloser retitled this revision from [MLIR] Use `if constexpr` in `StorageUniquer` to [MLIR] Use `if constexpr` in `StorageUniquer` and `IR/AffineExpr`. Comment ActionsUpdate title to reflect IR/AffineExpr changes as well This revision is now accepted and ready to land.Dec 3 2022, 5:07 PM Closed by commit rG5d3c972a3565: [MLIR] Use `if constexpr` in `StorageUniquer` and `IR/AffineExpr` (authored by jloser). · Explain WhyDec 3 2022, 6:08 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 479887 mlir/include/mlir/IR/AffineExpr.h
mlir/include/mlir/Support/StorageUniquer.h
|