File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3377,6 +3377,9 @@ func.func @negative_from_elements_to_constant() -> vector<1x!llvm.ptr> {
3377
3377
3378
3378
// -----
3379
3379
3380
+ // `foldFromElementsToConstant` does not support `ub.poison`, so it bails out.
3381
+ // Instead, other folders apply here (e.g. `rewriteFromElementsAsBroadcast`).
3382
+
3380
3383
// CHECK-LABEL: @negative_from_elements_poison
3381
3384
// CHECK: %[[VAL:.*]] = ub.poison : vector<2xf32>
3382
3385
// CHECK: return %[[VAL]] : vector<2xf32>
@@ -3388,6 +3391,9 @@ func.func @negative_from_elements_poison_f32() -> vector<2xf32> {
3388
3391
3389
3392
// -----
3390
3393
3394
+ // `foldFromElementsToConstant` does not support `ub.poison`, so it bails out.
3395
+ // Instead, other folders apply here (e.g. `rewriteFromElementsAsBroadcast`).
3396
+
3391
3397
// CHECK-LABEL: @negative_from_elements_poison_i32
3392
3398
// CHECK: %[[VAL:.*]] = ub.poison : vector<2xi32>
3393
3399
// CHECK: return %[[VAL]] : vector<2xi32>
@@ -3399,6 +3405,9 @@ func.func @negative_from_elements_poison_i32() -> vector<2xi32> {
3399
3405
3400
3406
// -----
3401
3407
3408
+ // `foldFromElementsToConstant` does not support `ub.poison`, so it bails out.
3409
+ // Instead, other folders apply here (e.g. `rewriteFromElementsAsBroadcast`).
3410
+
3402
3411
// CHECK-LABEL: @negative_from_elements_poison_constant_mix
3403
3412
// CHECK: %[[POISON:.*]] = ub.poison : f32
3404
3413
// CHECK: %[[CONST:.*]] = arith.constant 1.000000e+00 : f32
You can’t perform that action at this time.
0 commit comments