diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-23 18:03:50 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-23 18:03:50 +0000 |
commit | 0d82a54bb9f9105c7b77a792e502cd194f4de509 (patch) | |
tree | 37f652642ba082336d2dfb1c9b94e10b1fa87dfe /lib/CodeGen/RegAlloc/LiveRangeInfo.cpp | |
parent | a1f64355d79ce9c14a06c014df9d1054410d65ee (diff) |
* Order #includes as per style guide
* Doxygen-ify comments
* Make code layout more consistent
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/LiveRangeInfo.cpp')
-rw-r--r-- | lib/CodeGen/RegAlloc/LiveRangeInfo.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp b/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp index 0f7958c88e..b9fcda789f 100644 --- a/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp +++ b/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp @@ -11,16 +11,16 @@ // //===----------------------------------------------------------------------===// +#include "IGNode.h" #include "LiveRangeInfo.h" #include "RegAllocCommon.h" #include "RegClass.h" -#include "IGNode.h" +#include "llvm/Function.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetRegInfo.h" -#include "llvm/Function.h" #include "Support/SetOperations.h" unsigned LiveRange::getRegClassID() const { return getRegClass()->getID(); } @@ -217,7 +217,6 @@ void LiveRangeInfo::constructLiveRanges() { } } // for all machine instructions in the BB - } // for all BBs in function // Now we have to suggest clors for call and return arg live ranges. @@ -278,8 +277,7 @@ void LiveRangeInfo::suggestRegs4CallRets() { // Checks if live range LR interferes with any node assigned or suggested to // be assigned the specified color // -inline bool InterferesWithColor(const LiveRange& LR, unsigned color) -{ +inline bool InterferesWithColor(const LiveRange& LR, unsigned color) { IGNode* lrNode = LR.getUserIGNode(); for (unsigned n=0, NN = lrNode->getNumOfNeighbors(); n < NN; n++) { LiveRange *neighLR = lrNode->getAdjIGNode(n)->getParentLR(); @@ -299,8 +297,7 @@ inline bool InterferesWithColor(const LiveRange& LR, unsigned color) // (4) LR2 has color and LR1 interferes with any LR that has the same color // inline bool InterfsPreventCoalescing(const LiveRange& LROfDef, - const LiveRange& LROfUse) -{ + const LiveRange& LROfUse) { // (4) if they have different suggested colors, cannot coalesce if (LROfDef.hasSuggestedColor() && LROfUse.hasSuggestedColor()) return true; |