[llvm] b7c7b1e - Remove elses after return.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 12:41:12 PDT 2023
Author: Eric Christopher
Date: 2023-08-15T19:10:22Z
New Revision: b7c7b1e530b74caa6808744948f33437b8126db8
URL: https://github.com/llvm/llvm-project/commit/b7c7b1e530b74caa6808744948f33437b8126db8
DIFF: https://github.com/llvm/llvm-project/commit/b7c7b1e530b74caa6808744948f33437b8126db8.diff
LOG: Remove elses after return.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 400ade5b62c58a..ff7b50f4c4c1fd 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -301,10 +301,9 @@ bool AArch64InstrInfo::analyzeBranch(MachineBasicBlock &MBB,
// Return now the only terminator is an unconditional branch.
TBB = LastInst->getOperand(0).getMBB();
return false;
- } else {
- SecondLastInst = &*I;
- SecondLastOpc = SecondLastInst->getOpcode();
}
+ SecondLastInst = &*I;
+ SecondLastOpc = SecondLastInst->getOpcode();
}
}
@@ -327,10 +326,9 @@ bool AArch64InstrInfo::analyzeBranch(MachineBasicBlock &MBB,
return false;
}
return true; // Can't handle indirect branch.
- } else {
- SecondLastInst = &*I;
- SecondLastOpc = SecondLastInst->getOpcode();
}
+ SecondLastInst = &*I;
+ SecondLastOpc = SecondLastInst->getOpcode();
}
// If there are three terminators, we don't know what sort of block this is.
More information about the llvm-commits
mailing list