Skip to content

Commit ed7cfc1

Browse files
committed
format
1 parent d97ad29 commit ed7cfc1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Target/NVPTX/NVVMReflect.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ static cl::list<std::string> ReflectList(
105105
cl::desc("A key=value pair. Replace __nvvm_reflect(name) with value."),
106106
cl::ValueRequired);
107107

108-
static cl::opt<bool> NVVMReflectDCE("nvvm-reflect-dce", cl::init(false),
109-
cl::Hidden,
110-
cl::desc("Delete dead blocks introduced by reflect call elimination"));
108+
static cl::opt<bool> NVVMReflectDCE(
109+
"nvvm-reflect-dce", cl::init(false), cl::Hidden,
110+
cl::desc("Delete dead blocks introduced by reflect call elimination"));
111111

112112
// Set the ReflectMap with, first, the value of __CUDA_FTZ from module metadata,
113113
// and then the key/value pairs from the command line.
@@ -245,7 +245,7 @@ void NVVMReflect::replaceReflectCalls(
245245

246246
for (auto &[Call, NewValue] : ReflectReplacements)
247247
ReplaceInstructionWithConst(Call, NewValue);
248-
248+
249249
// Constant fold reflect results. If NVVMReflectDCE is enabled, we will
250250
// alternate between constant folding/propagation and dead block elimination.
251251
// Terminator folding may create new dead blocks. When those dead blocks are
@@ -261,8 +261,8 @@ void NVVMReflect::replaceReflectCalls(
261261
BasicBlock *BB = I->getParent();
262262
SmallVector<BasicBlock *, 8> Succs(successors(BB));
263263
// Some blocks may become dead if the terminator is folded because
264-
// a conditional branch is turned into a direct branch. Add those dead blocks
265-
// to the dead blocks set if NVVMReflectDCE is enabled.
264+
// a conditional branch is turned into a direct branch. Add those dead
265+
// blocks to the dead blocks set if NVVMReflectDCE is enabled.
266266
if (ConstantFoldTerminator(BB)) {
267267
for (BasicBlock *Succ : Succs) {
268268
if (pred_empty(Succ) &&

0 commit comments

Comments
 (0)