mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Remove unneccesary &*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5871 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -213,7 +213,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) {
|
|||||||
DEBUG(std::cerr << "no terminator instruction!");
|
DEBUG(std::cerr << "no terminator instruction!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
SetCondInst *SCI = dyn_cast<SetCondInst>(&*B->getCondition());
|
SetCondInst *SCI = dyn_cast<SetCondInst>(B->getCondition());
|
||||||
|
|
||||||
if (SCI && InductionType == Cannonical) {
|
if (SCI && InductionType == Cannonical) {
|
||||||
DEBUG(std::cerr << "sci:" << *SCI);
|
DEBUG(std::cerr << "sci:" << *SCI);
|
||||||
|
@ -182,7 +182,7 @@ InstructionSelection::InsertCodeForPhis(Function &F)
|
|||||||
MachineFunction &MF = MachineFunction::get(&F);
|
MachineFunction &MF = MachineFunction::get(&F);
|
||||||
for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) {
|
for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) {
|
||||||
for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin();
|
for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin();
|
||||||
PHINode *PN = dyn_cast<PHINode>(&*IIt); ++IIt) {
|
PHINode *PN = dyn_cast<PHINode>(IIt); ++IIt) {
|
||||||
// FIXME: This is probably wrong...
|
// FIXME: This is probably wrong...
|
||||||
Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
|
Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
|
|||||||
|
|
||||||
for (Function::const_iterator BB = F->begin(), BBE = F->end(); BB !=BBE; ++BB)
|
for (Function::const_iterator BB = F->begin(), BBE = F->end(); BB !=BBE; ++BB)
|
||||||
for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I)
|
for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I)
|
||||||
if (const CallInst *callInst = dyn_cast<CallInst>(&*I))
|
if (const CallInst *callInst = dyn_cast<CallInst>(I))
|
||||||
{
|
{
|
||||||
unsigned numOperands = callInst->getNumOperands() - 1;
|
unsigned numOperands = callInst->getNumOperands() - 1;
|
||||||
int numExtra = (int)numOperands-frameInfo.getNumFixedOutgoingArgs();
|
int numExtra = (int)numOperands-frameInfo.getNumFixedOutgoingArgs();
|
||||||
|
@ -896,7 +896,7 @@ static bool isGotoCodeNeccessary(BasicBlock *From, BasicBlock *To) {
|
|||||||
void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
|
void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
|
||||||
unsigned Indent) {
|
unsigned Indent) {
|
||||||
for (BasicBlock::iterator I = Succ->begin();
|
for (BasicBlock::iterator I = Succ->begin();
|
||||||
PHINode *PN = dyn_cast<PHINode>(&*I); ++I) {
|
PHINode *PN = dyn_cast<PHINode>(I); ++I) {
|
||||||
// now we have to do the printing
|
// now we have to do the printing
|
||||||
Out << string(Indent, ' ');
|
Out << string(Indent, ' ');
|
||||||
outputLValue(PN);
|
outputLValue(PN);
|
||||||
|
@ -896,7 +896,7 @@ static bool isGotoCodeNeccessary(BasicBlock *From, BasicBlock *To) {
|
|||||||
void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
|
void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
|
||||||
unsigned Indent) {
|
unsigned Indent) {
|
||||||
for (BasicBlock::iterator I = Succ->begin();
|
for (BasicBlock::iterator I = Succ->begin();
|
||||||
PHINode *PN = dyn_cast<PHINode>(&*I); ++I) {
|
PHINode *PN = dyn_cast<PHINode>(I); ++I) {
|
||||||
// now we have to do the printing
|
// now we have to do the printing
|
||||||
Out << string(Indent, ' ');
|
Out << string(Indent, ' ');
|
||||||
outputLValue(PN);
|
outputLValue(PN);
|
||||||
|
@ -182,7 +182,7 @@ InstructionSelection::InsertCodeForPhis(Function &F)
|
|||||||
MachineFunction &MF = MachineFunction::get(&F);
|
MachineFunction &MF = MachineFunction::get(&F);
|
||||||
for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) {
|
for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) {
|
||||||
for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin();
|
for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin();
|
||||||
PHINode *PN = dyn_cast<PHINode>(&*IIt); ++IIt) {
|
PHINode *PN = dyn_cast<PHINode>(IIt); ++IIt) {
|
||||||
// FIXME: This is probably wrong...
|
// FIXME: This is probably wrong...
|
||||||
Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
|
Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user