| 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)
|
|
|