From 0bee8352b0bff578e1aef9773122b8b73faed43c Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Thu, 21 Aug 2014 22:23:52 +0000 Subject: [PATCH] [PeepholeOptimizer] Enable the advanced copy optimization by default. The advanced copy optimization does not yield any difference on the whole llvm test-suite + SPECs, either in compile time or runtime (binaries are identical), but has a big potential when data go back and forth between register files as demonstrated with test/CodeGen/ARM/adv-copy-opt.ll. Note: This was measured for both Os and O3 for armv7s, arm64, and x86_64. llvm-svn: 216236 --- lib/CodeGen/PeepholeOptimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/PeepholeOptimizer.cpp b/lib/CodeGen/PeepholeOptimizer.cpp index 98fcc2e2529..d38502298cc 100644 --- a/lib/CodeGen/PeepholeOptimizer.cpp +++ b/lib/CodeGen/PeepholeOptimizer.cpp @@ -94,7 +94,7 @@ DisablePeephole("disable-peephole", cl::Hidden, cl::init(false), cl::desc("Disable the peephole optimizer")); static cl::opt -DisableAdvCopyOpt("disable-adv-copy-opt", cl::Hidden, cl::init(true), +DisableAdvCopyOpt("disable-adv-copy-opt", cl::Hidden, cl::init(false), cl::desc("Disable advanced copy optimization")); STATISTIC(NumReuse, "Number of extension results reused");