[llvm] [VPlan] Fix VPInstruction::AnyOf combine undoing freeze (PR #223640)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 07:48:46 PDT 2026


================
@@ -0,0 +1,54 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -p loop-vectorize -force-vector-width=4 -force-vector-interleave=2 -S %s | FileCheck %s
+
+; Make sure we don't carry out the
+; any-of (fcmp uno A, A), (fcmp uno B, B), ...-> any-of (fcmp uno A, B)
+; combine, since the freezes should block it.
----------------
david-arm wrote:

Anyway, I'm not saying this is a problem today. I'm just pointing out that relying upon freeze blocking a combine from happening also prevents you from ever moving the reeze. And that could be fine, but it does restrict what you transforms you can do in future.

https://github.com/llvm/llvm-project/pull/223640


More information about the llvm-commits mailing list