OSDN Git Service

NewGVN: Fix PR32838.
authorDaniel Berlin <dberlin@dberlin.org>
Fri, 19 May 2017 20:22:20 +0000 (20:22 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Fri, 19 May 2017 20:22:20 +0000 (20:22 +0000)
commit55d8857f8f30584a4ba5d5124304ff5572db43c9
treefcf2226e4eaee61d4aea1b9e6da8e282d0a12682
parentd17a1f592181c45ba7508eb97c3ee84e45da2b0d
NewGVN: Fix PR32838.
This is a complicated bug involving two issues:
1. What do we do with phi nodes when we prove all arguments are not
live?
2. When is it safe to use value leaders to determine if we can ignore
an argumnet?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303453 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Scalar/GVNExpression.h
lib/Transforms/Scalar/NewGVN.cpp
test/Transforms/NewGVN/pr32838.ll [new file with mode: 0644]