[llvm] [SimplifyCFG] Supporting hoisting/sinking callbases with differing attrs (PR #109472)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 07:53:09 PDT 2024
================
@@ -1591,10 +1591,150 @@ static void hoistLockstepIdenticalDbgVariableRecords(
}
}
+// See if we can intersect the attributes for two callbases (used for
+// hoisting/sinking).
+static std::optional<AttributeList> tryIntersectAttrs(const CallBase *CB0,
+ const CallBase *CB1) {
----------------
goldsteinn wrote:
Likewise all the `opt*` attrs. I'll move to attributes but Ill give the API a whitelist of attrs may intersect to avoid these cases.
https://github.com/llvm/llvm-project/pull/109472
More information about the llvm-commits
mailing list