[Mlir-commits] [mlir] [mlir][Vector] Fold `vector.extract` from poison vector (PR #126122)
Jakub Kuderski
llvmlistbot at llvm.org
Fri Feb 7 07:12:12 PST 2025
================
@@ -132,6 +132,28 @@ func.func @extract_from_create_mask_dynamic_position(%dim0: index, %index: index
// -----
+// CHECK-LABEL: @extract_scalar_poison
+func.func @extract_scalar_poison() -> f32 {
+ // CHECK-NEXT: ub.poison : f32
+ // CHECK-NOT: vector.extract
----------------
kuhar wrote:
Instead of checking that there's no extract, consider checking that poison was returned? That would make the check more local (you don't have to scan all the way down to the next label).
https://github.com/llvm/llvm-project/pull/126122
More information about the Mlir-commits
mailing list