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

Unified Diff: src/IceOperand.h

Issue 775953003: Subzero: Improve performance by using llvm::SmallVector<>. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceDefs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceOperand.h
diff --git a/src/IceOperand.h b/src/IceOperand.h
index c99b9d7a6f355405e6925f8532574c3a7d50b373..99bbd39dbcb442bc8d5ebb3d8bf05e429f44361a 100644
--- a/src/IceOperand.h
+++ b/src/IceOperand.h
@@ -362,7 +362,8 @@ public:
private:
typedef std::pair<InstNumberT, InstNumberT> RangeElementType;
- typedef std::vector<RangeElementType> RangeType;
+ // Assume a common case of 2 or fewer segments per live range.
+ typedef llvm::SmallVector<RangeElementType, 2> RangeType;
RangeType Range;
RegWeight Weight;
// TrimmedBegin is an optimization for the overlaps() computation.
« no previous file with comments | « src/IceDefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698