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

Unified Diff: src/IceInst.cpp

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 12 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/IceInst.h ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.cpp
diff --git a/src/IceInst.cpp b/src/IceInst.cpp
index e4f697aa93c2822a50df186247a3c5ad15d96f7a..f336ba99b024db4c87c1c50f03d9483ec682be5a 100644
--- a/src/IceInst.cpp
+++ b/src/IceInst.cpp
@@ -493,10 +493,11 @@ InstFakeDef::InstFakeDef(Cfg *Func, Variable *Dest, Variable *Src)
addSource(Src);
}
-InstFakeUse::InstFakeUse(Cfg *Func, Variable *Src)
- : InstHighLevel(Func, Inst::FakeUse, 1, nullptr) {
+InstFakeUse::InstFakeUse(Cfg *Func, Variable *Src, uint32_t Weight)
+ : InstHighLevel(Func, Inst::FakeUse, Weight, nullptr) {
assert(Src);
- addSource(Src);
+ for (uint32_t i = 0; i < Weight; ++i)
+ addSource(Src);
}
InstFakeKill::InstFakeKill(Cfg *Func, const Inst *Linked)
« no previous file with comments | « src/IceInst.h ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698