diff options
author | Junmo Park <junmoz.park@samsung.com> | 2016-01-09 07:30:13 +0000 |
---|---|---|
committer | Junmo Park <junmoz.park@samsung.com> | 2016-01-09 07:30:13 +0000 |
commit | e1582cec348c4b7f7b90bd0c113992061ebf5ef6 (patch) | |
tree | 201d491608da457885b9ec3fc8b6f78c20c41a1d /llvm/lib/CodeGen | |
parent | c680b78066adb7fbb68f8fddc7a73eb0db299897 (diff) | |
download | bcm5719-llvm-e1582cec348c4b7f7b90bd0c113992061ebf5ef6.tar.gz bcm5719-llvm-e1582cec348c4b7f7b90bd0c113992061ebf5ef6.zip |
[BranchFolding] Set correct mem refs
Merge MBBICommon and MBBI's MMOs.
Differential Revision: http://reviews.llvm.org/D15990
llvm-svn: 257253
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 60803490a5d..df5cac5a9f7 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -780,7 +780,7 @@ removeMMOsFromMemoryOperations(MachineBasicBlock::iterator MBBIStartPos, assert(MBBICommon->isIdenticalTo(&*MBBI) && "Expected matching MIIs!"); if (MBBICommon->mayLoad() || MBBICommon->mayStore()) - MBBICommon->setMemRefs(MBBI->mergeMemRefsWith(*MBBI)); + MBBICommon->setMemRefs(MBBICommon->mergeMemRefsWith(*MBBI)); ++MBBI; ++MBBICommon; |