[llvm] r247935 - gvn small fix

Piotr Padlewski via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 13:34:22 PDT 2015


Author: prazek
Date: Thu Sep 17 15:34:22 2015
New Revision: 247935

URL: http://llvm.org/viewvc/llvm-project?rev=247935&view=rev
Log:
gvn small fix

http://reviews.llvm.org/D12928

Modified:
    llvm/trunk/lib/Transforms/Scalar/GVN.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=247935&r1=247934&r2=247935&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Thu Sep 17 15:34:22 2015
@@ -1939,10 +1939,8 @@ bool GVN::processLoad(LoadInst *L) {
       ++NumGVNLoad;
       return true;
     }
-  }
 
-  // If the value isn't available, don't do anything!
-  if (Dep.isClobber()) {
+    // If the value isn't available, don't do anything!
     DEBUG(
       // fast print dep, using operator<< on instruction is too slow.
       dbgs() << "GVN: load ";




More information about the llvm-commits mailing list