[llvm-commits] [llvm] r55067 - in /llvm/trunk/lib/CodeGen/SelectionDAG: SelectionDAGISel.cpp SimpleBBISel.cpp SimpleBBISel.h

Evan Cheng evan.cheng at apple.com
Wed Aug 20 10:50:32 PDT 2008


Author: evancheng
Date: Wed Aug 20 12:50:32 2008
New Revision: 55067

URL: http://llvm.org/viewvc/llvm-project?rev=55067&view=rev
Log:
Kill off SimpleBBISel, it's replaced by FastISel.

Removed:
    llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp
    llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.h
Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=55067&r1=55066&r2=55067&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Aug 20 12:50:32 2008
@@ -13,7 +13,6 @@
 
 #define DEBUG_TYPE "isel"
 #include "llvm/CodeGen/SelectionDAGISel.h"
-#include "SimpleBBISel.h"
 #include "llvm/ADT/BitVector.h"
 #include "llvm/Analysis/AliasAnalysis.h"
 #include "llvm/Constants.h"
@@ -5486,14 +5485,12 @@
   // each basic block.
   NodeAllocatorType NodeAllocator;
 
-  SimpleBBISel SISel(MF, TLI);
   std::vector<std::pair<MachineInstr*, unsigned> > PHINodesToUpdate;
   for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I) {
     BasicBlock *LLVMBB = &*I;
     PHINodesToUpdate.clear();
 
-    if (!Fast || !SISel.SelectBasicBlock(LLVMBB,  FuncInfo.MBBMap[LLVMBB]))
-      SelectBasicBlock(LLVMBB, MF, FuncInfo, PHINodesToUpdate, NodeAllocator);
+    SelectBasicBlock(LLVMBB, MF, FuncInfo, PHINodesToUpdate, NodeAllocator);
     FinishBasicBlock(LLVMBB, MF, FuncInfo, PHINodesToUpdate, NodeAllocator);
   }
 }

Removed: llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp?rev=55066&view=auto

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp (removed)
@@ -1,29 +0,0 @@
-//===-- SimpleBBISel.cpp - Implement the SimpleBBISel class ---------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This implements simple basic block instruction selection. If the given
-// BasicBlock is considered "simple", i.e. all operations are supported by
-// the target and their types are legal, it does instruction directly from
-// LLVM BasicBlock to MachineInstr's.
-//
-//===----------------------------------------------------------------------===//
-
-#define DEBUG_TYPE "simple-isel"
-#include "SimpleBBISel.h"
-#include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/CodeGen/MachineInstrBuilder.h"
-#include "llvm/CodeGen/SelectionDAG.h"
-using namespace llvm;
-
-/// SelectBasicBlock - Try to convert a LLVM basic block into a
-/// MachineBasicBlock using simple instruction selection. Returns false if it
-/// is not able to do so.
-bool SimpleBBISel::SelectBasicBlock(BasicBlock *BB, MachineBasicBlock *MBB) {
-  return false;
-}

Removed: llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.h?rev=55066&view=auto

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.h (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SimpleBBISel.h (removed)
@@ -1,45 +0,0 @@
-//===-- SimpleBBISel.cpp - Definition of the SimpleBBISel class -----------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file defines the SimpleBBISel class which handles simple basic block
-// instruction selection. If the given BasicBlock is considered "simple", i.e.
-// all operations are supported by the target and their types are legal, it
-// does instruction directly from LLVM BasicBlock to MachineInstr's.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef SELECTIONDAG_SIMPLEBBISEL_H
-#define SELECTIONDAG_SIMPLEBBISEL_H
-
-#include "llvm/Support/Compiler.h"
-
-namespace llvm {
-
-class BasicBlock;
-class MachineBasicBlock;
-class MachineFunction;
-class TargetLowering;
-
-class VISIBILITY_HIDDEN SimpleBBISel {
-  MachineFunction &MF;
-  TargetLowering &TLI;
-  
- public:
-  explicit SimpleBBISel(MachineFunction &mf, TargetLowering &tli)
-    : MF(mf), TLI(tli) {};
-
-  /// SelectBasicBlock - Try to convert a LLVM basic block into a
-  /// MachineBasicBlock using simple instruction selection. Returns false if it
-  /// is not able to do so.
-  bool SelectBasicBlock(BasicBlock *BB, MachineBasicBlock *MBB);
-};
-  
-} // end namespace llvm.
-
-#endif





More information about the llvm-commits mailing list