mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix a few minor issues that were exposed by the removal of SCEVHandle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -594,7 +594,7 @@ Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) {
|
||||
|
||||
// Truncate the result down to the original type, if needed.
|
||||
const SCEV* T = SE.getTruncateOrNoop(V, Ty);
|
||||
return expand(V);
|
||||
return expand(T);
|
||||
}
|
||||
|
||||
Value *SCEVExpander::visitTruncateExpr(const SCEVTruncateExpr *S) {
|
||||
|
@@ -481,7 +481,6 @@ void IndVarSimplify::RewriteIVExpressions(Loop *L, const Type *LargestType,
|
||||
ilist<IVStrideUse> &List = SI->second->Users;
|
||||
for (ilist<IVStrideUse>::iterator UI = List.begin(),
|
||||
E = List.end(); UI != E; ++UI) {
|
||||
const SCEV* Offset = UI->getOffset();
|
||||
Value *Op = UI->getOperandValToReplace();
|
||||
const Type *UseTy = Op->getType();
|
||||
Instruction *User = UI->getUser();
|
||||
|
Reference in New Issue
Block a user