diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-25 04:47:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-25 04:47:41 +0000 |
commit | 7ad1c7342bb6619ebf13284377e2b479830d096f (patch) | |
tree | b3b58b794879ca7afb0162ef60599150352dccba /lib | |
parent | 088a1e84ea985a22efcf907d7789064fee3a97b9 (diff) | |
download | external_llvm-7ad1c7342bb6619ebf13284377e2b479830d096f.zip external_llvm-7ad1c7342bb6619ebf13284377e2b479830d096f.tar.gz external_llvm-7ad1c7342bb6619ebf13284377e2b479830d096f.tar.bz2 |
another minor tweak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/CodeGenPrepare.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index 0a464a7..4a91ca8 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -532,7 +532,7 @@ void ExtAddrMode::print(OStream &OS) const { /// false if not. static bool TryMatchingScaledValue(Value *ScaleReg, int64_t Scale, const Type *AccessTy, ExtAddrMode &AddrMode, - SmallVector<Instruction*, 16> &AddrModeInsts, + SmallVectorImpl<Instruction*> &AddrModeInsts, const TargetLowering &TLI, unsigned Depth) { // If we already have a scale of this value, we can add to it, otherwise, we // need an available scale field. @@ -678,8 +678,7 @@ static bool FindMaximalLegalAddressingMode(Value *Addr, const Type *AccessTy, } case Instruction::Mul: case Instruction::Shl: { - // Can only handle X*C and X << C, and can only handle this when the scale - // field is available. + // Can only handle X*C and X << C. ConstantInt *RHS = dyn_cast<ConstantInt>(AddrInst->getOperand(1)); if (!RHS) break; int64_t Scale = RHS->getSExtValue(); |