Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: src/IceOperand.h

Issue 1273823003: Subzero: Completely remove tracking of stack pointer live range. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix a condition to match previous logic. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceLiveness.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// 1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 RegWeight getWeight() const { return Weight; } 457 RegWeight getWeight() const { return Weight; }
458 void setWeight(uint32_t NewWeight) { Weight = RegWeight(NewWeight); } 458 void setWeight(uint32_t NewWeight) { Weight = RegWeight(NewWeight); }
459 void setWeightInfinite() { setWeight(RegWeight::Inf); } 459 void setWeightInfinite() { setWeight(RegWeight::Inf); }
460 460
461 LiveRange &getLiveRange() { return Live; } 461 LiveRange &getLiveRange() { return Live; }
462 const LiveRange &getLiveRange() const { return Live; } 462 const LiveRange &getLiveRange() const { return Live; }
463 void setLiveRange(const LiveRange &Range) { Live = Range; } 463 void setLiveRange(const LiveRange &Range) { Live = Range; }
464 void resetLiveRange() { Live.reset(); } 464 void resetLiveRange() { Live.reset(); }
465 void addLiveRange(InstNumberT Start, InstNumberT End, uint32_t WeightDelta) { 465 void addLiveRange(InstNumberT Start, InstNumberT End, uint32_t WeightDelta) {
466 assert(!getIgnoreLiveness());
466 assert(WeightDelta != RegWeight::Inf); 467 assert(WeightDelta != RegWeight::Inf);
467 Live.addSegment(Start, End); 468 Live.addSegment(Start, End);
468 if (Weight.isInf()) 469 if (Weight.isInf())
469 Live.setWeight(RegWeight(RegWeight::Inf)); 470 Live.setWeight(RegWeight(RegWeight::Inf));
470 else 471 else
471 Live.addWeight(WeightDelta * Weight.getWeight()); 472 Live.addWeight(WeightDelta * Weight.getWeight());
472 } 473 }
473 void setLiveRangeInfiniteWeight() { 474 void setLiveRangeInfiniteWeight() {
474 Live.setWeight(RegWeight(RegWeight::Inf)); 475 Live.setWeight(RegWeight(RegWeight::Inf));
475 } 476 }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 private: 656 private:
656 const Cfg *Func; 657 const Cfg *Func;
657 MetadataKind Kind; 658 MetadataKind Kind;
658 std::vector<VariableTracking> Metadata; 659 std::vector<VariableTracking> Metadata;
659 const static InstDefList NoDefinitions; 660 const static InstDefList NoDefinitions;
660 }; 661 };
661 662
662 } // end of namespace Ice 663 } // end of namespace Ice
663 664
664 #endif // SUBZERO_SRC_ICEOPERAND_H 665 #endif // SUBZERO_SRC_ICEOPERAND_H
OLDNEW
« no previous file with comments | « src/IceLiveness.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698