| Index: src/IceTargetLowering.cpp
|
| diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
|
| index d1ca570ba7d2a0fe1a70a18a389a1bdfac038d92..3bb63a906e839641f9dbe57ad83d4c1de78dd939 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);
|
| }
|
| }
|
| }
|
|
|