Fix spelling and grammar

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2013-07-22 18:59:58 +00:00
parent e08a57824c
commit 1f4492e0b0

View File

@ -274,11 +274,11 @@ static void deleteIfDeadInstruction(Value *V, ScalarEvolution &SE,
//
//===----------------------------------------------------------------------===//
// This fucntion will return true iff the given block contains nothing but goto.
// A typical usage of this function is to check if the preheader fucntion is
// "almost" empty such that generated intrinsic function can be moved across
// preheader and to be placed at the end of the preconditiona block without
// concerning of breaking data dependence.
// This function will return true iff the given block contains nothing but goto.
// A typical usage of this function is to check if the preheader function is
// "almost" empty such that generated intrinsic functions can be moved across
// the preheader and be placed at the end of the precondition block without
// the concern of breaking data dependence.
bool LIRUtil::isAlmostEmpty(BasicBlock *BB) {
if (BranchInst *Br = getBranch(BB)) {
return Br->isUnconditional() && BB->size() == 1;