Cost-efficient branch prediction hardwares