[PATCH] D18828: [llvm] Minor code cleanups for GVN. NFC.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 08:40:22 PDT 2016


mcrosier added inline comments.

================
Comment at: llvm/lib/Transforms/Scalar/GVN.cpp:1896
@@ -1897,1 +1895,3 @@
+    if (isa<Constant>(LHS)
+        || (isa<Argument>(LHS) && !isa<Argument>(RHS) && !isa<Constant>(RHS)))
       std::swap(LHS, RHS);
----------------
This doesn't appear to be a NFC.


Repository:
  rL LLVM

http://reviews.llvm.org/D18828





More information about the llvm-commits mailing list