================
@@ -1349,6 +1349,10 @@ static bool upgradeIntrinsicFunction1(Function *F,
Function *&NewFn,
else if (Name == "clz.ll" || Name == "popc.ll" || Name == "h2f" ||
Name == "swap.lo.hi.b64")
Expand = true;
+ else if (Name == "barrier0" || Name == "barrier.n" ||
----------------
Artem-B wrote:
Ideally, all we need is a "has_known_prefix" function and a sorted array of
known prefixes. This would give us both efficient search and an easily
readable/maintainable list of intrinsics we care about. But given that it's
nowhere near the hot path, we don't have to do it. The current version is fine.
https://github.com/llvm/llvm-project/pull/140615
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits