diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-12 16:23:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-12 16:23:25 +0000 |
commit | 5476cfdb15c2104fe847a9dd5bdae87c9aa54234 (patch) | |
tree | b8aab37f91382899059f8cc1237becc99933289e /llvm/lib/Transforms/Utils/AddrModeMatcher.cpp | |
parent | 6b490ce4c74f1fdb48430deae78cacf444aaf5db (diff) | |
download | llvm-5476cfdb15c2104fe847a9dd5bdae87c9aa54234.zip llvm-5476cfdb15c2104fe847a9dd5bdae87c9aa54234.tar.gz llvm-5476cfdb15c2104fe847a9dd5bdae87c9aa54234.tar.bz2 |
Remove a bunch more now-unnecessary Context arguments.
llvm-svn: 78809
Diffstat (limited to 'llvm/lib/Transforms/Utils/AddrModeMatcher.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/AddrModeMatcher.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp index bcfa230..c47e0ff 100644 --- a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp +++ b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp @@ -97,8 +97,7 @@ bool AddressingModeMatcher::MatchScaledValue(Value *ScaleReg, int64_t Scale, // X*Scale + C*Scale to addr mode. ConstantInt *CI = 0; Value *AddLHS = 0; if (isa<Instruction>(ScaleReg) && // not a constant expr. - match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)), - MemoryInst->getContext())) { + match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { TestAddrMode.ScaledReg = AddLHS; TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale; |