Skip to content

Commit

Permalink
[RLE-DSE]. Enable redundant load elimination by default...
Browse files Browse the repository at this point in the history
This currently does not handle forwarding involving Phi-node. Will check in the code
to handle Phi-node in a later commmit along with performance #s.
  • Loading branch information
trentxintong committed Nov 16, 2015
1 parent c5df107 commit a6296a2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/SILPasses/Scalar/GlobalRedundantLoadElimination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@

using namespace swift;

static llvm::cl::opt<bool> EnableGlobalRLE("enable-global-redundant-load-elim",
llvm::cl::init(false));

STATISTIC(NumForwardedLoads, "Number of loads forwarded");

//===----------------------------------------------------------------------===//
Expand Down Expand Up @@ -727,10 +724,6 @@ class GlobalRedundantLoadElimination : public SILFunctionTransform {

/// The entry point to the transformation.
void run() override {
if (!EnableGlobalRLE)
return;

// Global RLE enabled.
SILFunction *F = getFunction();
DEBUG(llvm::dbgs() << "***** Redundant Load Elimination on function: "
<< F->getName() << " *****\n");
Expand Down

0 comments on commit a6296a2

Please sign in to comment.