[DAGCombiner] Fix invalid alias analysis.
authorClement Courbet <courbet@google.com>
Mon, 13 May 2019 09:07:37 +0000 (09:07 +0000)
committerClement Courbet <courbet@google.com>
Mon, 13 May 2019 09:07:37 +0000 (09:07 +0000)
commit9afc4764dd24bd2f23c44e51ad33f8e58234a8b6
tree5bcd2c99ccf88f0f47adf9ae09cdd88a8c8c7ee8
parent381ba9aedc9364091029aba9c075f43b0a4d4291
[DAGCombiner] Fix invalid alias analysis.

Summary:
When we know for sure whether two addresses do or do not alias, we
should immediately return from DAGCombiner::isAlias().

I think this comes from a bad copy/paste, Sorry for not catching that during the
code review.

Fixes PR41855.

Reviewers: niravd, gchatelet, EricWF

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

llvm-svn: 360566
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/lifetime-alias.ll