mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Remove an unused function argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b66cf43ef4
commit
8480bc5b5b
@ -171,7 +171,7 @@ namespace {
|
|||||||
private:
|
private:
|
||||||
bool AddUsersIfInteresting(Instruction *I, Loop *L,
|
bool AddUsersIfInteresting(Instruction *I, Loop *L,
|
||||||
SmallPtrSet<Instruction*,16> &Processed);
|
SmallPtrSet<Instruction*,16> &Processed);
|
||||||
SCEVHandle GetExpressionSCEV(Instruction *E, Loop *L);
|
SCEVHandle GetExpressionSCEV(Instruction *E);
|
||||||
ICmpInst *ChangeCompareStride(Loop *L, ICmpInst *Cond,
|
ICmpInst *ChangeCompareStride(Loop *L, ICmpInst *Cond,
|
||||||
IVStrideUse* &CondUse,
|
IVStrideUse* &CondUse,
|
||||||
const SCEVHandle* &CondStride);
|
const SCEVHandle* &CondStride);
|
||||||
@ -242,13 +242,13 @@ DeleteTriviallyDeadInstructions(SmallPtrSet<Instruction*,16> &Insts) {
|
|||||||
|
|
||||||
/// GetExpressionSCEV - Compute and return the SCEV for the specified
|
/// GetExpressionSCEV - Compute and return the SCEV for the specified
|
||||||
/// instruction.
|
/// instruction.
|
||||||
SCEVHandle LoopStrengthReduce::GetExpressionSCEV(Instruction *Exp, Loop *L) {
|
SCEVHandle LoopStrengthReduce::GetExpressionSCEV(Instruction *Exp) {
|
||||||
// Pointer to pointer bitcast instructions return the same value as their
|
// Pointer to pointer bitcast instructions return the same value as their
|
||||||
// operand.
|
// operand.
|
||||||
if (BitCastInst *BCI = dyn_cast<BitCastInst>(Exp)) {
|
if (BitCastInst *BCI = dyn_cast<BitCastInst>(Exp)) {
|
||||||
if (SE->hasSCEV(BCI) || !isa<Instruction>(BCI->getOperand(0)))
|
if (SE->hasSCEV(BCI) || !isa<Instruction>(BCI->getOperand(0)))
|
||||||
return SE->getSCEV(BCI);
|
return SE->getSCEV(BCI);
|
||||||
SCEVHandle R = GetExpressionSCEV(cast<Instruction>(BCI->getOperand(0)), L);
|
SCEVHandle R = GetExpressionSCEV(cast<Instruction>(BCI->getOperand(0)));
|
||||||
SE->setSCEV(BCI, R);
|
SE->setSCEV(BCI, R);
|
||||||
return R;
|
return R;
|
||||||
}
|
}
|
||||||
@ -262,8 +262,8 @@ SCEVHandle LoopStrengthReduce::GetExpressionSCEV(Instruction *Exp, Loop *L) {
|
|||||||
return SE->getSCEV(Exp);
|
return SE->getSCEV(Exp);
|
||||||
|
|
||||||
// Analyze all of the subscripts of this getelementptr instruction, looking
|
// Analyze all of the subscripts of this getelementptr instruction, looking
|
||||||
// for uses that are determined by the trip count of L. First, skip all
|
// for uses that are determined by the trip count of the loop. First, skip
|
||||||
// operands the are not dependent on the IV.
|
// all operands the are not dependent on the IV.
|
||||||
|
|
||||||
// Build up the base expression. Insert an LLVM cast of the pointer to
|
// Build up the base expression. Insert an LLVM cast of the pointer to
|
||||||
// uintptr_t first.
|
// uintptr_t first.
|
||||||
@ -417,7 +417,7 @@ bool LoopStrengthReduce::AddUsersIfInteresting(Instruction *I, Loop *L,
|
|||||||
return true; // Instruction already handled.
|
return true; // Instruction already handled.
|
||||||
|
|
||||||
// Get the symbolic expression for this instruction.
|
// Get the symbolic expression for this instruction.
|
||||||
SCEVHandle ISE = GetExpressionSCEV(I, L);
|
SCEVHandle ISE = GetExpressionSCEV(I);
|
||||||
if (isa<SCEVCouldNotCompute>(ISE)) return false;
|
if (isa<SCEVCouldNotCompute>(ISE)) return false;
|
||||||
|
|
||||||
// Get the start and stride for this expression.
|
// Get the start and stride for this expression.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user