summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-12-23 19:16:04 +0000
committerPhilip Reames <listmail@philipreames.com>2015-12-23 19:16:04 +0000
commit4e66c847224191c5660d378ed4da5db122ad7288 (patch)
treeee0e8ed1cb97771e233c2b560c30414fab06b420 /llvm/lib/CodeGen
parent9bc46b117b460d83565794e1b7bdc3196afee907 (diff)
downloadbcm5719-llvm-4e66c847224191c5660d378ed4da5db122ad7288.tar.gz
bcm5719-llvm-4e66c847224191c5660d378ed4da5db122ad7288.zip
[MemOperands] Clarify code around dropping memory operands [NFC]
Clarify a comment about what it means to drop memory operands from an instruction. While I'm adding change the name of the method slightly to make it a bit more clear what's going on when reading calling code. llvm-svn: 256346
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index e41926a819c..604feeddd35 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -793,7 +793,7 @@ removeMMOsFromMemoryOperations(MachineBasicBlock::iterator MBBIStartPos,
if (MBBICommon->mayLoad() || MBBICommon->mayStore())
if (!hasIdenticalMMOs(&*MBBI, &*MBBICommon))
- MBBICommon->clearMemRefs();
+ MBBICommon->dropMemRefs();
++MBBI;
++MBBICommon;
OpenPOWER on IntegriCloud