[PATCH] D15990: [BranchFolding] Set correct mem refs

Junmo Park via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 7 20:20:53 PST 2016


flyingforyou created this revision.
flyingforyou added a reviewer: reames.
flyingforyou added a subscriber: llvm-commits.

We might merge MBBICommon and MBBI's MMOs.

http://reviews.llvm.org/D15990

Files:
  lib/CodeGen/BranchFolding.cpp

Index: lib/CodeGen/BranchFolding.cpp
===================================================================
--- lib/CodeGen/BranchFolding.cpp
+++ lib/CodeGen/BranchFolding.cpp
@@ -780,7 +780,7 @@
     assert(MBBICommon->isIdenticalTo(&*MBBI) && "Expected matching MIIs!");
 
     if (MBBICommon->mayLoad() || MBBICommon->mayStore())
-      MBBICommon->setMemRefs(MBBI->mergeMemRefsWith(*MBBI));
+      MBBICommon->setMemRefs(MBBICommon->mergeMemRefsWith(*MBBI));
 
     ++MBBI;
     ++MBBICommon;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15990.44310.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160108/e4ca56d9/attachment.bin>


More information about the llvm-commits mailing list