[llvm] b6536e5 - As part of using inclusive language within the llvm project,

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 19 15:19:08 PDT 2020


Author: Eric Christopher
Date: 2020-06-19T15:12:18-07:00
New Revision: b6536e549d95b1f266d13999a001a1c7bde626f7

URL: https://github.com/llvm/llvm-project/commit/b6536e549d95b1f266d13999a001a1c7bde626f7
DIFF: https://github.com/llvm/llvm-project/commit/b6536e549d95b1f266d13999a001a1c7bde626f7.diff

LOG: As part of using inclusive language within the llvm project,
migrate away from the use of blacklist and whitelist.

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/GVNSink.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/GVNSink.cpp b/llvm/lib/Transforms/Scalar/GVNSink.cpp
index 5fee60fc6bf9..1e3cc59b48e0 100644
--- a/llvm/lib/Transforms/Scalar/GVNSink.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNSink.cpp
@@ -581,7 +581,7 @@ class GVNSink {
 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


        


More information about the llvm-commits mailing list