Fix typo.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 7 Apr 2010 05:59:12 +0000 (05:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 7 Apr 2010 05:59:12 +0000 (05:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100609 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineLICM.cpp

index 35cd6d6421528b0e3966751f09d2486dd86c21bd..72f7d4549c87b2dbc5165ab2ea479cf9f00e2b41 100644 (file)
@@ -295,7 +295,7 @@ void MachineLICM::HoistRegionPostRA(MachineDomTreeNode *N) {
 
       // If MI is a store to a stack slot, remember the slot. An instruction
       // loads from this slot cannot be a LICM candidate.
-      if (SkipCheck && TII->isStoreToStackSlot(MI, FI))
+      if (!SkipCheck && TII->isStoreToStackSlot(MI, FI))
         StoredFIs.insert(FI);
     }