mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Rename getConstantInt{True|False} to get{True|False} at Chris' behest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -441,7 +441,7 @@ void SCCPSolver::getFeasibleSuccessors(TerminatorInst &TI,
|
||||
Succs[0] = Succs[1] = true;
|
||||
} else if (BCValue.isConstant()) {
|
||||
// Constant condition variables mean the branch can only go a single way
|
||||
Succs[BCValue.getConstant() == Context->getConstantIntFalse()] = true;
|
||||
Succs[BCValue.getConstant() == Context->getFalse()] = true;
|
||||
}
|
||||
}
|
||||
} else if (isa<InvokeInst>(&TI)) {
|
||||
@ -486,7 +486,7 @@ bool SCCPSolver::isEdgeFeasible(BasicBlock *From, BasicBlock *To) {
|
||||
|
||||
// Constant condition variables mean the branch can only go a single way
|
||||
return BI->getSuccessor(BCValue.getConstant() ==
|
||||
Context->getConstantIntFalse()) == To;
|
||||
Context->getFalse()) == To;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@ -1487,7 +1487,7 @@ bool SCCPSolver::ResolvedUndefsIn(Function &F) {
|
||||
// as undef, then further analysis could think the undef went another way
|
||||
// leading to an inconsistent set of conclusions.
|
||||
if (BranchInst *BI = dyn_cast<BranchInst>(TI)) {
|
||||
BI->setCondition(Context->getConstantIntFalse());
|
||||
BI->setCondition(Context->getFalse());
|
||||
} else {
|
||||
SwitchInst *SI = cast<SwitchInst>(TI);
|
||||
SI->setCondition(SI->getCaseValue(1));
|
||||
|
Reference in New Issue
Block a user