[llvm] [ValueLattice] Support constant vectors in mergeIn() (PR #99466)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 04:31:15 PDT 2024


================
@@ -426,6 +431,16 @@ class ValueLatticeElement {
         return false;
       if (RHS.isUndef())
         return false;
+      // If the constant is a vector of integers, try to treat it as a range.
----------------
nikic wrote:

For plain integers, constants get converted into constant range on construction. For vectors this doesn't happen as it's a lossy operation. So I think there was just never a need for it before.

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


More information about the llvm-commits mailing list