[PATCH] D40634: [CGP] Enable select in complex addr mode

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 22:58:40 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL320551: [CGP] Enable select in complex addr mode (authored by skatkov, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D40634?vs=124870&id=126672#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D40634

Files:
  llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
  llvm/trunk/test/CodeGen/X86/x86-cmov-converter.ll


Index: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
@@ -196,7 +196,7 @@
                 cl::desc("Allow creation of Phis in Address sinking."));
 
 static cl::opt<bool>
-AddrSinkNewSelects("addr-sink-new-select", cl::Hidden, cl::init(false),
+AddrSinkNewSelects("addr-sink-new-select", cl::Hidden, cl::init(true),
                    cl::desc("Allow creation of selects in Address sinking."));
 
 static cl::opt<bool> AddrSinkCombineBaseReg(
Index: llvm/trunk/test/CodeGen/X86/x86-cmov-converter.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/x86-cmov-converter.ll
+++ llvm/trunk/test/CodeGen/X86/x86-cmov-converter.ll
@@ -234,7 +234,7 @@
 }
 
 ; CHECK-LABEL: BinarySearch
-; CHECK: cmov
+; CHECK: set
 
 define i32 @BinarySearch(i32 %Mask, %struct.Node* nocapture readonly %Curr, %struct.Node* nocapture readonly %Next) #0 {
 entry:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40634.126672.patch
Type: text/x-patch
Size: 1048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171213/0b2154cb/attachment.bin>


More information about the llvm-commits mailing list