Test commit: modified comment. NFC
authorAnna Thomas <anna@azul.com>
Mon, 25 Apr 2016 13:58:05 +0000 (13:58 +0000)
committerAnna Thomas <anna@azul.com>
Mon, 25 Apr 2016 13:58:05 +0000 (13:58 +0000)
llvm-svn: 267406

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

index ab6cd10..ddb866c 100644 (file)
@@ -1901,7 +1901,7 @@ isAllocSiteRemovable(Instruction *AI, SmallVectorImpl<WeakVH> &Users,
         ICmpInst *ICI = cast<ICmpInst>(I);
         // We can fold eq/ne comparisons with null to false/true, respectively.
         // We also fold comparisons in some conditions provided the alloc has
-        // not escaped.
+        // not escaped (see isNeverEqualToUnescapedAlloc).
         if (!ICI->isEquality())
           return false;
         unsigned OtherIndex = (ICI->getOperand(0) == PI) ? 1 : 0;