[llvm] [MergeFunc] Handle ConstantRange attributes. (PR #88584)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 13 00:22:06 PDT 2024


================
@@ -143,6 +143,14 @@ int FunctionComparator::cmpAttrs(const AttributeList L,
         if (int Res = cmpNumbers((uint64_t)TyL, (uint64_t)TyR))
           return Res;
         continue;
+      } else if (LA.isConstantRangeAttribute() &&
+                 RA.isConstantRangeAttribute()) {
----------------
andjo403 wrote:

nice catch. added the check. it needs to be inside the if branch as otherwise string attribute will not work

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


More information about the llvm-commits mailing list