[llvm] [clang] [CodeGen] Port AtomicExpand to new Pass Manager (PR #71220)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 21:15:40 PST 2024


================
@@ -340,7 +342,33 @@ bool AtomicExpand::runOnFunction(Function &F) {
   return MadeChange;
 }
 
-bool AtomicExpand::bracketInstWithFences(Instruction *I, AtomicOrdering Order) {
+bool AtomicExpandLegacy::runOnFunction(Function &F) {
+  if (skipFunction(F))
+    return false;
----------------
arsenm wrote:

This should not use skipFunction, it's a mandatory lowering pass. It's not part of the current code 

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


More information about the cfe-commits mailing list