We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c951c8 commit 8fbef2aCopy full SHA for 8fbef2a
llvm/lib/Target/NVPTX/NVVMReflect.cpp
@@ -259,9 +259,12 @@ void NVVMReflect::replaceReflectCalls(
259
// a conditional branch is turned into a direct branch.
260
if (ConstantFoldTerminator(BB)) {
261
for (BasicBlock *Succ : Succs) {
262
- if (pred_empty(Succ) && Succ != &Succ->getParent()->getEntryBlock()) {
263
- SetVector<BasicBlock *> TransitivelyDead = findTransitivelyDeadBlocks(Succ);
264
- DeadBlocks.insert(TransitivelyDead.begin(), TransitivelyDead.end());
+ if (pred_empty(Succ) &&
+ Succ != &Succ->getParent()->getEntryBlock()) {
+ SetVector<BasicBlock *> TransitivelyDead =
265
+ findTransitivelyDeadBlocks(Succ);
266
+ DeadBlocks.insert(TransitivelyDead.begin(),
267
+ TransitivelyDead.end());
268
}
269
270
0 commit comments