[DAGCombiner] Teach TokenFactor pruning to peek through lifetime nodes
authorNirav Dave <niravd@google.com>
Wed, 27 Mar 2019 20:37:08 +0000 (20:37 +0000)
committerNirav Dave <niravd@google.com>
Wed, 27 Mar 2019 20:37:08 +0000 (20:37 +0000)
commit6b741a803867dafafaad38821599c79e8ce7cae7
treec02234f568667f185fc44146a231138b4726c520
parentb1650f0da92bc9256627a1a692f847c6e1b1d210
[DAGCombiner] Teach TokenFactor pruning to peek through lifetime nodes

Summary: Lifetime nodes were inhibiting TokenFactor simplification inhibiting chain-based optimizations.

Reviewers: courbet, jyknight

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

llvm-svn: 357121
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/swap.ll
llvm/test/DebugInfo/COFF/inlining.ll