As part of using inclusive language within the llvm project,
authorEric Christopher <echristo@gmail.com>
Fri, 19 Jun 2020 21:54:50 +0000 (14:54 -0700)
committerEric Christopher <echristo@gmail.com>
Fri, 19 Jun 2020 22:12:18 +0000 (15:12 -0700)
migrate away from the use of blacklist and whitelist.

llvm/lib/Transforms/Scalar/GVNSink.cpp

index 5fee60f..1e3cc59 100644 (file)
@@ -581,7 +581,7 @@ public:
 private:
   ValueTable VN;
 
-  bool isInstructionBlacklisted(Instruction *I) {
+  bool isInstructionSinkable(Instruction *I) {
     // These instructions may change or break semantics if moved.
     if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
         I->getType()->isTokenTy())
@@ -673,7 +673,7 @@ Optional<SinkingInstructionCandidate> GVNSink::analyzeInstructionForSinking(
       NewInsts.push_back(I);
   }
   for (auto *I : NewInsts)
-    if (isInstructionBlacklisted(I))
+    if (isInstructionSinkable(I))
       return None;
 
   // If we've restricted the incoming blocks, restrict all needed PHIs also