mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
[C++] Use 'nullptr'. Transforms edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -291,7 +291,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
|
||||
BasicBlock *OrigLatch = L->getLoopLatch();
|
||||
|
||||
BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator());
|
||||
if (BI == 0 || BI->isUnconditional())
|
||||
if (!BI || BI->isUnconditional())
|
||||
return false;
|
||||
|
||||
// If the loop header is not one of the loop exiting blocks then
|
||||
@@ -302,7 +302,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
|
||||
|
||||
// If the loop latch already contains a branch that leaves the loop then the
|
||||
// loop is already rotated.
|
||||
if (OrigLatch == 0)
|
||||
if (!OrigLatch)
|
||||
return false;
|
||||
|
||||
// Rotate if either the loop latch does *not* exit the loop, or if the loop
|
||||
@@ -329,7 +329,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
|
||||
|
||||
// If the loop could not be converted to canonical form, it must have an
|
||||
// indirectbr in it, just give up.
|
||||
if (OrigPreheader == 0)
|
||||
if (!OrigPreheader)
|
||||
return false;
|
||||
|
||||
// Anything ScalarEvolution may know about this loop or the PHI nodes
|
||||
|
||||
Reference in New Issue
Block a user