[llvm-branch-commits] [llvm] dc35368 - Remove static function unused after cf1c774.

Paul Robinson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 25 10:48:10 PST 2020


Author: Paul Robinson
Date: 2020-11-25T13:43:06-05:00
New Revision: dc35368ccf17a7dca0874ace7490cc3836fb063f

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

LOG: Remove static function unused after cf1c774.

Caused some -Werror bot failures.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/FastISel.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 3d935bb0077e..2d3ec0a0367f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -223,21 +223,6 @@ void FastISel::flushLocalValueMap() {
   LastFlushPoint = FuncInfo.InsertPt;
 }
 
-static bool isTerminatingEHLabel(MachineBasicBlock *MBB, MachineInstr &MI) {
-  // Ignore non-EH labels.
-  if (!MI.isEHLabel())
-    return false;
-
-  // Any EH label outside a landing pad must be for an invoke. Consider it a
-  // terminator.
-  if (!MBB->isEHPad())
-    return true;
-
-  // If this is a landingpad, the first non-phi instruction will be an EH_LABEL.
-  // Don't consider that label to be a terminator.
-  return MI.getIterator() != MBB->getFirstNonPHI();
-}
-
 bool FastISel::hasTrivialKill(const Value *V) {
   // Don't consider constants or arguments to have trivial kills.
   const Instruction *I = dyn_cast<Instruction>(V);


        


More information about the llvm-branch-commits mailing list