summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-03-09 23:53:17 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-03-09 23:53:17 +0000
commitd4b3f8e0093aaa30341dc809b52a220f340fd104 (patch)
tree09b5549a32e89751f98dba19461e9d102776922f /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
parenta460316d817d0c4654b8e9f3df8ca49ca8b077da (diff)
downloadbcm5719-llvm-d4b3f8e0093aaa30341dc809b52a220f340fd104.tar.gz
bcm5719-llvm-d4b3f8e0093aaa30341dc809b52a220f340fd104.zip
Revert 127368 and 127371 for now.
llvm-svn: 127376
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index 5e60aa04eae..f1a5a6599b2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
@@ -1140,19 +1140,13 @@ SUnit *ScheduleDAGRRList::PickNodeToScheduleBottomUp() {
TRI->getMinimalPhysRegClass(Reg, VT);
const TargetRegisterClass *DestRC = TRI->getCrossCopyRegClass(RC);
- // If cross copy register class is the same as RC, then it must be possible
- // copy the value directly. Do not try duplicate the def.
- // If cross copy register class is not the same as RC, then it's possible to
- // copy the value but it require cross register class copies and it is
- // expensive.
- // If cross copy register class is null, then it's not possible to copy
- // the value at all.
+ // If cross copy register class is null, then it must be possible copy
+ // the value directly. Do not try duplicate the def.
SUnit *NewDef = 0;
- if (DestRC != RC) {
+ if (DestRC)
NewDef = CopyAndMoveSuccessors(LRDef);
- if (!DestRC && !NewDef)
- report_fatal_error("Can't handle live physical register dependency!");
- }
+ else
+ DestRC = RC;
if (!NewDef) {
// Issue copies, these can be expensive cross register class copies.
SmallVector<SUnit*, 2> Copies;
OpenPOWER on IntegriCloud