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

Unified Diff: src/IceTargetLoweringX8664.cpp

Issue 1775253003: Cache common constants before lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up code. Created 4 years, 9 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
Index: src/IceTargetLoweringX8664.cpp
diff --git a/src/IceTargetLoweringX8664.cpp b/src/IceTargetLoweringX8664.cpp
index 28304a9c77a40c5caa449986c60c3a34926b2fd5..da39d1869b956dbf2634d5c28370e81bc31670e4 100644
--- a/src/IceTargetLoweringX8664.cpp
+++ b/src/IceTargetLoweringX8664.cpp
@@ -198,7 +198,7 @@ void TargetX8664::_mov_sp(Operand *NewValue) {
void TargetX8664::_push_rbp() {
assert(NeedSandboxing);
- Constant *_0 = Ctx->getConstantZero(IceType_i32);
+ Constant *_0 = getConstantZero(IceType_i32);
Variable *ebp =
getPhysicalRegister(Traits::RegisterSet::Reg_ebp, IceType_i32);
Variable *rsp =

Powered by Google App Engine
This is Rietveld 408576698