]> granicus.if.org Git - llvm/commit
[CaptureTracking] Allow null to be in either icmp operand
authorJohannes Doerfert <jdoerfert@anl.gov>
Fri, 16 Aug 2019 21:53:49 +0000 (21:53 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Fri, 16 Aug 2019 21:53:49 +0000 (21:53 +0000)
commitfa9f4208faa513c7b67ca3a75b785502c621aa07
tree8ec536a0bffa4bbbb5b7f65acd46af06adc1744d
parent222b3548b7128b82653852eedf02f654b68a0135
[CaptureTracking] Allow null to be in either icmp operand

Summary:
Before we required the comparison against null to be "canonical", hence
null to be operand #1. This patch allows null to be in either operand,
similar to the handling of loaded globals that follows.

Reviewers: sanjoy, hfinkel, aykevl, sstefan1, uenoku

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66321

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CaptureTracking.cpp
test/Transforms/FunctionAttrs/nocapture.ll