summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Thomas <anna@azul.com>2016-04-25 13:58:05 +0000
committerAnna Thomas <anna@azul.com>2016-04-25 13:58:05 +0000
commit95f68aa7eb4835c0638d08e531483f891a373887 (patch)
tree5c6a078c8bc6d2f398542b38a7aa1c18dc9bba33
parentcbd7f8847ee9d5dc7283fcbbcf79ac1cc7ff6807 (diff)
downloadbcm5719-llvm-95f68aa7eb4835c0638d08e531483f891a373887.tar.gz
bcm5719-llvm-95f68aa7eb4835c0638d08e531483f891a373887.zip
Test commit: modified comment. NFC
llvm-svn: 267406
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index ab6cd101960..ddb866c5edb 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -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;
OpenPOWER on IntegriCloud