Skip to content

Commit e8036f1

Browse files
[NFC] Refactor if for readability
1 parent 21c5491 commit e8036f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Utils/IRNormalizer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ void IRNormalizer::sortCommutativeOperands(Instruction *I, T &Operands) const {
217217
/// \see getOutputFootprint()
218218
/// \param I Instruction to be renamed.
219219
void IRNormalizer::nameAsInitialInstruction(Instruction *I) const {
220-
if (I->getType()->isVoidTy() || (!I->getName().empty() && !RenameAll))
220+
if (I->getType()->isVoidTy())
221+
return;
222+
if (!(I->getName().empty() || RenameAll))
221223
return;
222224
LLVM_DEBUG(dbgs() << "Naming initial instruction: " << *I << "\n");
223225

0 commit comments

Comments
 (0)