[PATCH] D40808: [RISCV] Implement branch analysis
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 17 12:02:30 PST 2017
reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.
Much cleaner, thanks!
================
Comment at: lib/Target/RISCV/RISCVInstrInfo.cpp:177
+ // Handle a single unconditional branch.
+ if (NumTerminators == 1 && I->getDesc().isUnconditionalBranch()) {
+ TBB = I->getOperand(0).getMBB();
----------------
Minor:
if (NumTerminators == 1) {
if (isUnconditional()) {}
assert isConditional()
...
}
https://reviews.llvm.org/D40808
More information about the llvm-commits
mailing list