| Index: src/IceTargetLowering.cpp
|
| diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
|
| index 3e93b768cfb24d1384090ecf1c9a023dc6f38218..5ef6d098d62357f5a2db047dd9f09164a779e790 100644
|
| --- a/src/IceTargetLowering.cpp
|
| +++ b/src/IceTargetLowering.cpp
|
| @@ -103,7 +103,7 @@ void TargetLowering::doAddressOpt() {
|
| Context.advanceNext();
|
| }
|
|
|
| -void TargetLowering::doNopInsertion() {
|
| +void TargetLowering::doNopInsertion(RandomNumberGenerator &RNG) {
|
| Inst *I = Context.getCur();
|
| bool ShouldSkip = llvm::isa<InstFakeUse>(I) || llvm::isa<InstFakeDef>(I) ||
|
| llvm::isa<InstFakeKill>(I) || I->isRedundantAssign() ||
|
| @@ -111,7 +111,7 @@ void TargetLowering::doNopInsertion() {
|
| if (!ShouldSkip) {
|
| int Probability = Ctx->getFlags().getNopProbabilityAsPercentage();
|
| for (int I = 0; I < Ctx->getFlags().getMaxNopsPerInstruction(); ++I) {
|
| - randomlyInsertNop(Probability / 100.0);
|
| + randomlyInsertNop(Probability / 100.0, RNG);
|
| }
|
| }
|
| }
|
|
|