llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Macro Terra (hongtaihu) <details> <summary>Changes</summary> The `#if 0` block in `test6` has been disabled since 2009 because vector comparisons could crash codegen. That was fixed in r76726 (`5ac69057c000`), which changed `ScalarExprEmitter::EmitCompare` to use `isFPOrFPVector()` and added the unguarded `test8` to this same file. `test8` already checks the same float4 comparisons with exact `fcmp` expectations, so this older block is redundant. It also contains a stale `a < b` duplicate where `test8` has `a > b`. Remove the disabled block. No functional change; coverage remains in `test8`. --- Full diff: https://github.com/llvm/llvm-project/pull/243510.diff 1 Files Affected: - (modified) clang/test/CodeGen/ext-vector.c (-12) ``````````diff diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c index d41c4b296ecae..393633b9762d9 100644 --- a/clang/test/CodeGen/ext-vector.c +++ b/clang/test/CodeGen/ext-vector.c @@ -112,18 +112,6 @@ void test6(float4 *ap, float4 *bp, float c) { a -= c; a *= c; a /= c; - - // Vector comparisons can sometimes crash the x86 backend, reject them until - // the implementation is stable. -#if 0 - int4 cmp; - cmp = a < b; - cmp = a <= b; - cmp = a < b; - cmp = a >= b; - cmp = a == b; - cmp = a != b; -#endif } // CHECK: @test7 `````````` </details> https://github.com/llvm/llvm-project/pull/243510 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
