diff --git a/llvm/lib/Transforms/Scalar/GVNSink.cpp b/llvm/lib/Transforms/Scalar/GVNSink.cpp --- a/llvm/lib/Transforms/Scalar/GVNSink.cpp +++ b/llvm/lib/Transforms/Scalar/GVNSink.cpp @@ -581,7 +581,7 @@ private: ValueTable VN; - bool isInstructionBlacklisted(Instruction *I) { + bool isInstructionExcluded(Instruction *I) { // These instructions may change or break semantics if moved. if (isa(I) || I->isEHPad() || isa(I) || I->getType()->isTokenTy()) @@ -673,7 +673,7 @@ NewInsts.push_back(I); } for (auto *I : NewInsts) - if (isInstructionBlacklisted(I)) + if (isInstructionExcluded(I)) return None; // If we've restricted the incoming blocks, restrict all needed PHIs also