mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Fix copy+pasto issues in isMulSExtable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1faa88280e
commit
473e63512a
@ -392,12 +392,13 @@ static bool isAddSExtable(const SCEVAddExpr *A, ScalarEvolution &SE) {
|
|||||||
return isa<SCEVAddExpr>(SE.getSignExtendExpr(A, WideTy));
|
return isa<SCEVAddExpr>(SE.getSignExtendExpr(A, WideTy));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// isMulSExtable - Return true if the given add can be sign-extended
|
/// isMulSExtable - Return true if the given mul can be sign-extended
|
||||||
/// without changing its value.
|
/// without changing its value.
|
||||||
static bool isMulSExtable(const SCEVMulExpr *A, ScalarEvolution &SE) {
|
static bool isMulSExtable(const SCEVMulExpr *M, ScalarEvolution &SE) {
|
||||||
const Type *WideTy =
|
const Type *WideTy =
|
||||||
IntegerType::get(SE.getContext(), SE.getTypeSizeInBits(A->getType()) + 1);
|
IntegerType::get(SE.getContext(),
|
||||||
return isa<SCEVMulExpr>(SE.getSignExtendExpr(A, WideTy));
|
SE.getTypeSizeInBits(M->getType()) * M->getNumOperands());
|
||||||
|
return isa<SCEVMulExpr>(SE.getSignExtendExpr(M, WideTy));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getExactSDiv - Return an expression for LHS /s RHS, if it can be determined
|
/// getExactSDiv - Return an expression for LHS /s RHS, if it can be determined
|
||||||
|
Loading…
Reference in New Issue
Block a user