Delete a stale comment
authorPhilip Reames <listmail@philipreames.com>
Tue, 11 Jan 2022 00:15:39 +0000 (16:15 -0800)
committerPhilip Reames <listmail@philipreames.com>
Tue, 11 Jan 2022 02:18:34 +0000 (18:18 -0800)
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

index 6d5548d..ecdc4b5 100644 (file)
@@ -2567,10 +2567,6 @@ static bool isNeverEqualToUnescapedAlloc(Value *V, const TargetLibraryInfo &TLI,
   if (auto *LI = dyn_cast<LoadInst>(V))
     return isa<GlobalVariable>(LI->getPointerOperand());
   // Two distinct allocations will never be equal.
-  // We rely on LookThroughBitCast in isAllocLikeFn being false, since looking
-  // through bitcasts of V can cause
-  // the result statement below to be true, even when AI and V (ex:
-  // i8* ->i32* ->i8* of AI) are the same allocations.
   return isAllocLikeFn(V, &TLI) && V != AI;
 }