[PATCH] D157495: [WIP] Run SimplifyCFG from Atomic-Expand on CAS loop blocks.
Diana Picus via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 06:14:00 PDT 2023
rovka added a comment.
Could you please rephrase the commit message? It's not clear to me what using a "canonical pass" instead of a simplifyCFG pass means.
================
Comment at: llvm/lib/CodeGen/AtomicExpandPass.cpp:1524
BB->splitBasicBlock(Builder.GetInsertPoint(), "atomicrmw.end");
+ CmpXchgLoopBlocks.push_back(ExitBB);
BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB);
----------------
Why are we only keeping track of these blocks? There seem to be lots of other places in this file that split blocks and create new ones. Shouldn't we call simplifyCFG for all of them?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157495/new/
https://reviews.llvm.org/D157495
More information about the llvm-commits
mailing list