This commit handles folding spv.LogicalAnd/spv.LogicalOr when
one of the operands is constant true/false.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SPIRV/SPIRVCanonicalization.cpp | ||
---|---|---|
41 | Is the template here really necessary? Also, please use getSplatValue<bool>() instead. |
mlir/lib/Dialect/SPIRV/SPIRVCanonicalization.cpp | ||
---|---|---|
29 | Would it be better to change this to something like: static Optional<bool> getScalarOrSplatBoolAttr(Attribute boolAttr) to avoid doing the same checks twice in each of the folders? |
mlir/lib/Dialect/SPIRV/SPIRVCanonicalization.cpp | ||
---|---|---|
27 | The comment irVal seems to be out-of-date. |
Comment Actions
Comments addressed as https://github.com/llvm/llvm-project/commit/63779fb462d828d16b87f427a6490dded842ca15
mlir/lib/Dialect/SPIRV/SPIRVCanonicalization.cpp | ||
---|---|---|
29 | Good suggestion! Done. |
The comment irVal seems to be out-of-date.