Skip to content

Commit e61ff6a

Browse files
committed
rewrite comments to conform with sister PR
1 parent 13f3d47 commit e61ff6a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,7 @@ struct UIToFPI1Pattern final : public OpConversionPattern<arith::UIToFPOp> {
611611
// IndexCastOp
612612
//===----------------------------------------------------------------------===//
613613

614-
/// Converts arith.index_cast to spirv.Select if the type of source is i1 or
615-
/// vector of i1.
614+
/// Converts arith.index_cast to spirv.Select if the source type is i1
616615
struct IndexCastI1IndexPattern final
617616
: public OpConversionPattern<arith::IndexCastOp> {
618617
using OpConversionPattern::OpConversionPattern;

mlir/test/Conversion/ArithToSPIRV/arith-to-spirv.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,8 @@ func.func @index_castui4(%arg0: index) {
734734
return
735735
}
736736

737-
// CHECK-LABEL: index_casti1index_1
738-
func.func @index_casti1index_1(%arg0 : i1) {
737+
// CHECK-LABEL: index_casti1index
738+
func.func @index_casti1index(%arg0 : i1) {
739739
// CHECK: %[[ZERO:.+]] = spirv.Constant 0 : i32
740740
// CHECK: %[[ONE:.+]] = spirv.Constant 1 : i32
741741
// CHECK: spirv.Select %{{.+}}, %[[ONE]], %[[ZERO]] : i1, i32

0 commit comments

Comments
 (0)