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