mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
fix typos; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -888,7 +888,7 @@ static bool getEdgeValueLocal(Value *Val, BasicBlock *BBFrom,
|
|||||||
// know that v != 0.
|
// know that v != 0.
|
||||||
if (BranchInst *BI = dyn_cast<BranchInst>(BBFrom->getTerminator())) {
|
if (BranchInst *BI = dyn_cast<BranchInst>(BBFrom->getTerminator())) {
|
||||||
// If this is a conditional branch and only one successor goes to BBTo, then
|
// If this is a conditional branch and only one successor goes to BBTo, then
|
||||||
// we may be able to infer something from the condition.
|
// we may be able to infer something from the condition.
|
||||||
if (BI->isConditional() &&
|
if (BI->isConditional() &&
|
||||||
BI->getSuccessor(0) != BI->getSuccessor(1)) {
|
BI->getSuccessor(0) != BI->getSuccessor(1)) {
|
||||||
bool isTrueDest = BI->getSuccessor(0) == BBTo;
|
bool isTrueDest = BI->getSuccessor(0) == BBTo;
|
||||||
@@ -937,8 +937,8 @@ static bool getEdgeValueLocal(Value *Val, BasicBlock *BBFrom,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Compute the value of Val on the edge BBFrom -> BBTo, or the value at
|
/// \brief Compute the value of Val on the edge BBFrom -> BBTo or the value at
|
||||||
/// the basic block if the edge does not constraint Val.
|
/// the basic block if the edge does not constrain Val.
|
||||||
bool LazyValueInfoCache::getEdgeValue(Value *Val, BasicBlock *BBFrom,
|
bool LazyValueInfoCache::getEdgeValue(Value *Val, BasicBlock *BBFrom,
|
||||||
BasicBlock *BBTo, LVILatticeVal &Result,
|
BasicBlock *BBTo, LVILatticeVal &Result,
|
||||||
Instruction *CxtI) {
|
Instruction *CxtI) {
|
||||||
|
Reference in New Issue
Block a user