diff options
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 75584decf0..3662424923 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -48,7 +48,7 @@ STATISTIC(NumPRELoad, "Number of loads PRE'd"); static cl::opt<bool> EnablePRE("enable-pre", cl::init(true), cl::Hidden); -cl::opt<bool> EnableLoadPRE("enable-load-pre", cl::init(true)); +cl::opt<bool> EnableLoadPRE("enable-load-pre"/*, cl::init(true)*/); //===----------------------------------------------------------------------===// // ValueTable Class @@ -957,11 +957,6 @@ bool GVN::processNonLocalLoad(LoadInst *LI, if (Deps.size() > 100) return false; - // If we had a phi translation failure, we'll have a single entry which is a - // clobber in the current block. Reject this early. - if (Deps.size() == 1 && Deps[0].second.isClobber()) - return false; - // Filter out useless results (non-locals, etc). Keep track of the blocks // where we have a value available in repl, also keep track of whether we see // dependencies that produce an unknown value for the load (such as a call |