[llvm] r319535 - Follow-up to r319434 to turn the pass on by default
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 04:03:00 PST 2017
Author: nemanjai
Date: Fri Dec 1 04:02:59 2017
New Revision: 319535
URL: http://llvm.org/viewvc/llvm-project?rev=319535&view=rev
Log:
Follow-up to r319434 to turn the pass on by default
Now that the patch has gone through the buildbot cycle,
turn it on by default.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/trunk/test/CodeGen/PowerPC/memcmp.ll
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp?rev=319535&r1=319534&r2=319535&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Fri Dec 1 04:02:59 2017
@@ -106,7 +106,7 @@ enum ICmpInGPRType { ICGPR_All, ICGPR_No
ICGPR_SextI32, ICGPR_ZextI64, ICGPR_SextI64 };
static cl::opt<ICmpInGPRType> CmpInGPR(
- "ppc-gpr-icmps", cl::Hidden, cl::init(ICGPR_None),
+ "ppc-gpr-icmps", cl::Hidden, cl::init(ICGPR_All),
cl::desc("Specify the types of comparisons to emit GPR-only code for."),
cl::values(clEnumValN(ICGPR_None, "none", "Do not modify integer comparisons."),
clEnumValN(ICGPR_All, "all", "All possible int comparisons in GPRs."),
Modified: llvm/trunk/test/CodeGen/PowerPC/memcmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/memcmp.ll?rev=319535&r1=319534&r2=319535&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/memcmp.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/memcmp.ll Fri Dec 1 04:02:59 2017
@@ -6,11 +6,12 @@ define signext i32 @memcmp8(i32* nocaptu
; CHECK: # BB#0:
; CHECK-NEXT: ldbrx 3, 0, 3
; CHECK-NEXT: ldbrx 4, 0, 4
-; CHECK-NEXT: li 5, 0
-; CHECK-NEXT: cmpld 3, 4
-; CHECK-NEXT: li 3, 1
-; CHECK-NEXT: isel 4, 3, 5, 1
-; CHECK-NEXT: isel 3, 3, 5, 0
+; CHECK-NEXT: subfc 5, 3, 4
+; CHECK-NEXT: subfe 5, 4, 4
+; CHECK-NEXT: subfc 4, 4, 3
+; CHECK-NEXT: subfe 3, 3, 3
+; CHECK-NEXT: neg 4, 5
+; CHECK-NEXT: neg 3, 3
; CHECK-NEXT: subf 3, 3, 4
; CHECK-NEXT: extsw 3, 3
; CHECK-NEXT: blr
More information about the llvm-commits
mailing list