llvm.org GIT mirror llvm / 2ee82e0
Remove unneccesary &* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5871 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
6 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
212212 DEBUG(std::cerr << "no terminator instruction!");
213213 return NULL;
214214 }
215 SetCondInst *SCI = dyn_cast(&*B->getCondition());
215 SetCondInst *SCI = dyn_cast(B->getCondition());
216216
217217 if (SCI && InductionType == Cannonical) {
218218 DEBUG(std::cerr << "sci:" << *SCI);
181181 MachineFunction &MF = MachineFunction::get(&F);
182182 for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) {
183183 for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin();
184 PHINode *PN = dyn_cast(&*IIt); ++IIt) {
184 PHINode *PN = dyn_cast(IIt); ++IIt) {
185185 // FIXME: This is probably wrong...
186186 Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
187187
246246
247247 for (Function::const_iterator BB = F->begin(), BBE = F->end(); BB !=BBE; ++BB)
248248 for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I)
249 if (const CallInst *callInst = dyn_cast(&*I))
249 if (const CallInst *callInst = dyn_cast(I))
250250 {
251251 unsigned numOperands = callInst->getNumOperands() - 1;
252252 int numExtra = (int)numOperands-frameInfo.getNumFixedOutgoingArgs();
895895 void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
896896 unsigned Indent) {
897897 for (BasicBlock::iterator I = Succ->begin();
898 PHINode *PN = dyn_cast(&*I); ++I) {
898 PHINode *PN = dyn_cast(I); ++I) {
899899 // now we have to do the printing
900900 Out << string(Indent, ' ');
901901 outputLValue(PN);
895895 void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
896896 unsigned Indent) {
897897 for (BasicBlock::iterator I = Succ->begin();
898 PHINode *PN = dyn_cast(&*I); ++I) {
898 PHINode *PN = dyn_cast(I); ++I) {
899899 // now we have to do the printing
900900 Out << string(Indent, ' ');
901901 outputLValue(PN);
181181 MachineFunction &MF = MachineFunction::get(&F);
182182 for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) {
183183 for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin();
184 PHINode *PN = dyn_cast(&*IIt); ++IIt) {
184 PHINode *PN = dyn_cast(IIt); ++IIt) {
185185 // FIXME: This is probably wrong...
186186 Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
187187