[PATCH] D22318: [MI] Fix MachineInstr::isInvariantLoad.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 15:42:23 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL275331: [MI] Fix MachineInstr::isInvariantLoad. (authored by jlebar).

Changed prior to commit:
  http://reviews.llvm.org/D22318?vs=63873&id=63874#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D22318

Files:
  llvm/trunk/lib/CodeGen/MachineInstr.cpp

Index: llvm/trunk/lib/CodeGen/MachineInstr.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp
@@ -1585,8 +1585,7 @@
        E = memoperands_end(); I != E; ++I) {
     if ((*I)->isVolatile()) return false;
     if ((*I)->isStore()) return false;
-    if ((*I)->isInvariant()) return true;
-
+    if ((*I)->isInvariant()) continue;
 
     // A load from a constant PseudoSourceValue is invariant.
     if (const PseudoSourceValue *PSV = (*I)->getPseudoValue())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22318.63874.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160713/ea189fa4/attachment.bin>


More information about the llvm-commits mailing list