Revert "Move function to obtain branch weights into the BranchInst class. NFC."

This reverts commit r223784 and copies the 'ExtractBranchMetadata' to CodeGenPrepare.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Juergen Ributzka
2014-12-09 17:32:12 +00:00
parent 574ca2ad28
commit f3ac16dcb4
4 changed files with 49 additions and 32 deletions

View File

@@ -2535,10 +2535,6 @@ public:
/// continues to map correctly to each operand.
void swapSuccessors();
/// \brief Retrieve the probabilities of a conditional branch. Returns true on
/// success, or returns false if no or invalid metadata was found.
bool getBranchWeights(uint64_t &TrueWeight, uint64_t &FalseWeight) const;
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const Instruction *I) {
return (I->getOpcode() == Instruction::Br);