[PATCH] D40808: [RISCV] Implement branch analysis

Ondrej Glasnak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 09:14:27 PST 2017


glasnak added inline comments.


================
Comment at: lib/Target/RISCV/RISCVInstrInfo.cpp:190
+  // If there are three terminators, we don't know what sort of block this is.
+  if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I))
+    return true;
----------------
isn't SecondLastInst always true?


https://reviews.llvm.org/D40808





More information about the llvm-commits mailing list