diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-12-06 22:12:01 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-12-06 22:12:01 +0000 |
| commit | 2a81dd4a3c21457c7272b07c86c44885a974ab1e (patch) | |
| tree | 73daa22f68f22a29b999681b766aaac9395b2738 /llvm/lib/CodeGen/PHIElimination.cpp | |
| parent | 1f5c5aa2095f0f2117bb995e004a7a4b2b422968 (diff) | |
| download | bcm5719-llvm-2a81dd4a3c21457c7272b07c86c44885a974ab1e.tar.gz bcm5719-llvm-2a81dd4a3c21457c7272b07c86c44885a974ab1e.zip | |
First chunk of MachineInstr bundle support.
1. Added opcode BUNDLE
2. Taught MachineInstr class to deal with bundled MIs
3. Changed MachineBasicBlock iterator to skip over bundled MIs; added an iterator to walk all the MIs
4. Taught MachineBasicBlock methods about bundled MIs
llvm-svn: 145975
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp index 6994aa58fbd..0e52496f00c 100644 --- a/llvm/lib/CodeGen/PHIElimination.cpp +++ b/llvm/lib/CodeGen/PHIElimination.cpp @@ -410,7 +410,7 @@ bool PHIElimination::SplitPHIEdges(MachineFunction &MF, return false; // Quick exit for basic blocks without PHIs. bool Changed = false; - for (MachineBasicBlock::const_iterator BBI = MBB.begin(), BBE = MBB.end(); + for (MachineBasicBlock::iterator BBI = MBB.begin(), BBE = MBB.end(); BBI != BBE && BBI->isPHI(); ++BBI) { for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) { unsigned Reg = BBI->getOperand(i).getReg(); |

