use "unpredictable" metadata in SelectionDAG when splitting compares
authorSanjay Patel <spatel@rotateright.com>
Wed, 2 Sep 2015 19:17:25 +0000 (19:17 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 2 Sep 2015 19:17:25 +0000 (19:17 +0000)
commit9f33e3748e76d9510c53fe2f74af07392b9c75b1
tree2b67a91d459a6e436ef38d781354e1f93089ccf3
parent580504f120cad32f8402f0efbca37650e3f19168
use "unpredictable" metadata in SelectionDAG when splitting compares

This patch uses the metadata defined in D12341 to avoid creating an unpredictable branch.

Differential Revision: http://reviews.llvm.org/D12343

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246691 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/or-branch.ll