Use the EdgeBundles analysis in X86FloatingPoint instead of recomputing CFG
[oota-llvm.git] / include / llvm / CodeGen / EdgeBundles.h
index 0929d935ec22545285a488e5308fc028c058a8ae..2c5215a7927a16bf96da5bb80b6252e6e8634a21 100644 (file)
@@ -37,6 +37,9 @@ public:
   /// bundle number for basic block #N
   unsigned getBundle(unsigned N, bool Out) const { return EC[2 * N + Out]; }
 
+  /// getNumBundles - Return the total number of bundles in the CFG.
+  unsigned getNumBundles() const { return EC.getNumClasses(); }
+
   /// getMachineFunction - Return the last machine function computed.
   const MachineFunction *getMachineFunction() const { return MF; }