[llvm] abc787f - Delete a stale comment

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 10 18:18:40 PST 2022


Author: Philip Reames
Date: 2022-01-10T18:18:34-08:00
New Revision: abc787fbf3a75e6e27603bc79f4c530644ecfbb6

URL: https://github.com/llvm/llvm-project/commit/abc787fbf3a75e6e27603bc79f4c530644ecfbb6
DIFF: https://github.com/llvm/llvm-project/commit/abc787fbf3a75e6e27603bc79f4c530644ecfbb6.diff

LOG: Delete a stale comment

Added: 
    

Modified: 
    llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 6d5548d144145..ecdc4b5b5b4a9 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -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;
 }
 


        


More information about the llvm-commits mailing list