diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-04 21:10:11 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-04 21:10:11 +0000 |
commit | 631ee4b89f494a3056c62f84e434e1ecf266bb8a (patch) | |
tree | 23d158ae4084dad1bebc7c5dc29981f417fc7130 /include/llvm/CodeGen/EdgeBundles.h | |
parent | 8dd070edc2209ecfdae49780ec1596b349e2cbd1 (diff) |
Use the EdgeBundles analysis in X86FloatingPoint instead of recomputing CFG
bundles in the pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/EdgeBundles.h')
-rw-r--r-- | include/llvm/CodeGen/EdgeBundles.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/EdgeBundles.h b/include/llvm/CodeGen/EdgeBundles.h index 0929d935ec..2c5215a792 100644 --- a/include/llvm/CodeGen/EdgeBundles.h +++ b/include/llvm/CodeGen/EdgeBundles.h @@ -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; } |