summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-03-09 16:00:35 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-03-09 16:00:35 +0000
commitc27a18f39fa155583a5a124549137016cb8c7712 (patch)
treef316fd4a7f4422f6817d9472287c4011b9a083a9 /llvm/lib/CodeGen/MachineSink.cpp
parent069b432bf7357b680384f4a90b596c8b9cb2c343 (diff)
downloadbcm5719-llvm-c27a18f39fa155583a5a124549137016cb8c7712.tar.gz
bcm5719-llvm-c27a18f39fa155583a5a124549137016cb8c7712.zip
[TII] Allow getMemOpBaseRegImmOfs() to accept negative offsets. NFC.
http://reviews.llvm.org/D17967 llvm-svn: 263021
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineSink.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index b1f3875880b..18aecdaba84 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -702,7 +702,8 @@ static bool SinkingPreventsImplicitNullCheck(MachineInstr *MI,
!PredBB->getTerminator()->getMetadata(LLVMContext::MD_make_implicit))
return false;
- unsigned BaseReg, Offset;
+ unsigned BaseReg;
+ int64_t Offset;
if (!TII->getMemOpBaseRegImmOfs(MI, BaseReg, Offset, TRI))
return false;
OpenPOWER on IntegriCloud