Revert "[CGP] Enable select in complex addr mode"

Causes: Assertion `ScaledReg == nullptr' failed.

This actually a revert of rL320551.

llvm-svn: 320553
This commit is contained in:
Serguei Katkov 2017-12-13 07:39:35 +00:00
parent ac59db2efe
commit ac4a8fb1cd
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ AddrSinkNewPhis("addr-sink-new-phis", cl::Hidden, cl::init(false),
cl::desc("Allow creation of Phis in Address sinking."));
static cl::opt<bool>
AddrSinkNewSelects("addr-sink-new-select", cl::Hidden, cl::init(true),
AddrSinkNewSelects("addr-sink-new-select", cl::Hidden, cl::init(false),
cl::desc("Allow creation of selects in Address sinking."));
static cl::opt<bool> AddrSinkCombineBaseReg(

View File

@ -234,7 +234,7 @@ for.body: ; preds = %for.body.preheader,
}
; CHECK-LABEL: BinarySearch
; CHECK: set
; CHECK: cmov
define i32 @BinarySearch(i32 %Mask, %struct.Node* nocapture readonly %Curr, %struct.Node* nocapture readonly %Next) #0 {
entry: