[llvm-commits] [llvm] r101144 - /llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
Dan Gohman
gohman at apple.com
Tue Apr 13 09:53:51 PDT 2010
Author: djg
Date: Tue Apr 13 11:53:51 2010
New Revision: 101144
URL: http://llvm.org/viewvc/llvm-project?rev=101144&view=rev
Log:
Use MachineBasicBlock::isLiveIn.
Modified:
llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp?rev=101144&r1=101143&r2=101144&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp Tue Apr 13 11:53:51 2010
@@ -656,15 +656,8 @@
bool Thumb2SizeReduce::ReduceMBB(MachineBasicBlock &MBB) {
bool Modified = false;
- bool LiveCPSR = false;
// Yes, CPSR could be livein.
- for (MachineBasicBlock::const_livein_iterator I = MBB.livein_begin(),
- E = MBB.livein_end(); I != E; ++I) {
- if (*I == ARM::CPSR) {
- LiveCPSR = true;
- break;
- }
- }
+ bool LiveCPSR = MBB.isLiveIn(ARM::CPSR);
MachineBasicBlock::iterator MII = MBB.begin(), E = MBB.end();
MachineBasicBlock::iterator NextMII;
More information about the llvm-commits
mailing list