| Index: src/IceTargetLoweringMIPS32.cpp
|
| diff --git a/src/IceTargetLoweringMIPS32.cpp b/src/IceTargetLoweringMIPS32.cpp
|
| index a59f486c3aaec1cdbb510d4a083a9eda0690cb9a..8f434b54035e2ef208d09591bd3f6d738ca720d7 100644
|
| --- a/src/IceTargetLoweringMIPS32.cpp
|
| +++ b/src/IceTargetLoweringMIPS32.cpp
|
| @@ -607,9 +607,10 @@ void TargetMIPS32::doAddressOptLoad() {
|
| UnimplementedError(Func->getContext()->getFlags());
|
| }
|
|
|
| -void TargetMIPS32::randomlyInsertNop(float Probability) {
|
| - RandomNumberGeneratorWrapper RNG(Ctx->getRNG());
|
| - if (RNG.getTrueWithProbability(Probability)) {
|
| +void TargetMIPS32::randomlyInsertNop(float Probability,
|
| + RandomNumberGenerator &RNG) {
|
| + RandomNumberGeneratorWrapper RNGW(RNG);
|
| + if (RNGW.getTrueWithProbability(Probability)) {
|
| UnimplementedError(Func->getContext()->getFlags());
|
| }
|
| }
|
| @@ -666,9 +667,10 @@ void TargetMIPS32::postLower() {
|
|
|
| void TargetMIPS32::makeRandomRegisterPermutation(
|
| llvm::SmallVectorImpl<int32_t> &Permutation,
|
| - const llvm::SmallBitVector &ExcludeRegisters) const {
|
| + const llvm::SmallBitVector &ExcludeRegisters, uint64_t Salt) const {
|
| (void)Permutation;
|
| (void)ExcludeRegisters;
|
| + (void)Salt;
|
| UnimplementedError(Func->getContext()->getFlags());
|
| }
|
|
|
|
|