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

Unified Diff: src/IceRegAlloc.h

Issue 627203002: Subzero: Optimize live range overlaps() computation through trimming. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove the variable definitions trimming to simplify Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRegAlloc.h
diff --git a/src/IceRegAlloc.h b/src/IceRegAlloc.h
index 99ed9084871b117c590993e540ae03ad613f1920..2dd9dac99303ba27987005e8d4991242e0f67cc3 100644
--- a/src/IceRegAlloc.h
+++ b/src/IceRegAlloc.h
@@ -34,10 +34,12 @@ public:
return range().endsBefore(Other.range());
}
bool overlaps(const LiveRangeWrapper &Other) const {
- return range().overlaps(Other.range());
+ const bool UseTrimmed = true;
+ return range().overlaps(Other.range(), UseTrimmed);
}
bool overlapsStart(const LiveRangeWrapper &Other) const {
- return range().overlaps(Other.range().getStart());
+ const bool UseTrimmed = true;
+ return range().overlapsInst(Other.range().getStart(), UseTrimmed);
}
Variable *const Var;
void dump(const Cfg *Func) const;
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698