mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +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));
|
||||
}
|
||||
|
||||
/// 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.
|
||||
static bool isMulSExtable(const SCEVMulExpr *A, ScalarEvolution &SE) {
|
||||
static bool isMulSExtable(const SCEVMulExpr *M, ScalarEvolution &SE) {
|
||||
const Type *WideTy =
|
||||
IntegerType::get(SE.getContext(), SE.getTypeSizeInBits(A->getType()) + 1);
|
||||
return isa<SCEVMulExpr>(SE.getSignExtendExpr(A, WideTy));
|
||||
IntegerType::get(SE.getContext(),
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user