HomePhabricator

[Attributor] Handle `null` differently in capture and alias logic

Authored by jdoerfert on Oct 9 2019, 10:33 PM.

Description

[Attributor] Handle null differently in capture and alias logic

Summary:
null in the default address space (=AS 0) cannot be captured nor can
it alias anything. We make this clear now as it can be important for
callbacks and other cases later on. In addition, this patch improves the
debug output for noalias deduction.

Reviewers: sstefan1, uenoku

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

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

llvm-svn: 374280