[all-commits] [llvm/llvm-project] 5d3c97: [MLIR] Use `if constexpr` in `StorageUniquer` and ...
Joe Loser via All-commits
all-commits at lists.llvm.org
Sat Dec 3 18:07:59 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5d3c972a3565df01bb4ac15262b6fe4c3157b807
https://github.com/llvm/llvm-project/commit/5d3c972a3565df01bb4ac15262b6fe4c3157b807
Author: Joe Loser <joeloser at fastmail.com>
Date: 2022-12-03 (Sat, 03 Dec 2022)
Changed paths:
M mlir/include/mlir/IR/AffineExpr.h
M mlir/include/mlir/Support/StorageUniquer.h
Log Message:
-----------
[MLIR] Use `if constexpr` in `StorageUniquer` and `IR/AffineExpr`
Querying the type trait is something that can be done at compile time. So,
replace the runtime `if` with `if constexpr`.
Differential Revision: https://reviews.llvm.org/D139264
More information about the All-commits
mailing list