mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-20 20:38:48 +00:00
Do not use BasicBlock::*_iterator, just use *_iterator itself.
Isn't updating copy and pasted code a joy git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34ce14b019
commit
f8b5b6ddb4
@ -57,8 +57,7 @@ void CombineBranches::getBackEdgesVisit(BasicBlock *u,
|
|||||||
time++;
|
time++;
|
||||||
d[u]=time;
|
d[u]=time;
|
||||||
|
|
||||||
for(BasicBlock::succ_iterator vl = succ_begin(u),
|
for (succ_iterator vl = succ_begin(u), ve = succ_end(u); vl != ve; ++vl){
|
||||||
ve = succ_end(u); vl != ve; ++vl){
|
|
||||||
|
|
||||||
BasicBlock *BB = *vl;
|
BasicBlock *BB = *vl;
|
||||||
|
|
||||||
|
@ -58,8 +58,7 @@ void InstLoops::getBackEdgesVisit(BasicBlock *u,
|
|||||||
time++;
|
time++;
|
||||||
d[u]=time;
|
d[u]=time;
|
||||||
|
|
||||||
for(BasicBlock::succ_iterator vl = succ_begin(u),
|
for(succ_iterator vl = succ_begin(u), ve = succ_end(u); vl != ve; ++vl){
|
||||||
ve = succ_end(u); vl != ve; ++vl){
|
|
||||||
BasicBlock *BB = *vl;
|
BasicBlock *BB = *vl;
|
||||||
|
|
||||||
if(color[BB]!=GREY && color[BB]!=BLACK){
|
if(color[BB]!=GREY && color[BB]!=BLACK){
|
||||||
|
@ -98,8 +98,7 @@ bool ProfilePaths::runOnFunction(Function &F){
|
|||||||
Node *nd=findBB(nodes, BB);
|
Node *nd=findBB(nodes, BB);
|
||||||
assert(nd && "No node for this edge!");
|
assert(nd && "No node for this edge!");
|
||||||
|
|
||||||
for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB);
|
for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){
|
||||||
s!=se; ++s){
|
|
||||||
Node *nd2=findBB(nodes,*s);
|
Node *nd2=findBB(nodes,*s);
|
||||||
assert(nd2 && "No node for this edge!");
|
assert(nd2 && "No node for this edge!");
|
||||||
Edge ed(nd,nd2,0);
|
Edge ed(nd,nd2,0);
|
||||||
|
@ -216,8 +216,7 @@ void getBBtrace(vector<BasicBlock *> &vBB, int pathNo, Function *M){//,
|
|||||||
Node *nd=findBB(nodes, BB);
|
Node *nd=findBB(nodes, BB);
|
||||||
assert(nd && "No node for this edge!");
|
assert(nd && "No node for this edge!");
|
||||||
|
|
||||||
for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB);
|
for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){
|
||||||
s!=se; ++s){
|
|
||||||
|
|
||||||
if(triggerBBs[*s] == 9){
|
if(triggerBBs[*s] == 9){
|
||||||
//if(!pathReg[M]){ //Get the path register for this!
|
//if(!pathReg[M]){ //Get the path register for this!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user