aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/Analysis.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-09 18:23:49 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-09 18:23:49 +0000
commit980f8f2639417fa9853a04ea58b8c1d7cd91a97c (patch)
treed65a793a8024f616261a1435d54f0c50011072d8 /llvm/lib/CodeGen/Analysis.cpp
parent91e113d1ddcc284378299fbbb9259bd12477c488 (diff)
downloadllvm-980f8f2639417fa9853a04ea58b8c1d7cd91a97c.zip
llvm-980f8f2639417fa9853a04ea58b8c1d7cd91a97c.tar.gz
llvm-980f8f2639417fa9853a04ea58b8c1d7cd91a97c.tar.bz2
CodeGen: Remove implicit conversions from Analysis and BranchFolding
Remove a few more implicit ilist iterator conversions, this time from Analysis.cpp and BranchFolding.cpp. I added a few overloads for `remove()` and `erase()`, which quite naturally take pointers as well as iterators as parameters. This will reduce the churn at least in the short term, but I don't really have a problem with these existing for longer. llvm-svn: 249867
Diffstat (limited to 'llvm/lib/CodeGen/Analysis.cpp')
-rw-r--r--llvm/lib/CodeGen/Analysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/Analysis.cpp b/llvm/lib/CodeGen/Analysis.cpp
index 0f7e83a..a13ab0d 100644
--- a/llvm/lib/CodeGen/Analysis.cpp
+++ b/llvm/lib/CodeGen/Analysis.cpp
@@ -517,7 +517,7 @@ bool llvm::isInTailCallPosition(ImmutableCallSite CS, const TargetMachine &TM) {
if (isa<DbgInfoIntrinsic>(BBI))
continue;
if (BBI->mayHaveSideEffects() || BBI->mayReadFromMemory() ||
- !isSafeToSpeculativelyExecute(BBI))
+ !isSafeToSpeculativelyExecute(&*BBI))
return false;
}
@@ -725,7 +725,7 @@ llvm::getFuncletMembership(const MachineFunction &MF) {
return FuncletMembership;
// Identify all the basic blocks reachable from the function entry.
- collectFuncletMembers(FuncletMembership, EntryBBNumber, MF.begin());
+ collectFuncletMembers(FuncletMembership, EntryBBNumber, &MF.front());
// All blocks not part of a funclet are in the parent function.
for (const MachineBasicBlock *MBB : UnreachableBlocks)
collectFuncletMembers(FuncletMembership, EntryBBNumber, MBB);