llvm-project/llvm/test/Transforms/CodeGenPrepare
Serguei Katkov a20e05bb94 [CGP] Fix the remove of matched phis in complex addressing mode
When we replace the Phi we created with matched ones it is possible that
there are two identical phi nodes in IR. And matcher is smart enough to find that
new created phi matches both of them. So we try to replace our phi node with
matched ones twice and what is bad we delete our phi node twice causing a crash.

As soon as we found that we have two identical Phi nodes it makes sense to do
a clean-up and replace one phi node by other one.
The patch implements it.

Reviewers: john.brawn, reames
Reviewed By: john.brawn
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D43758

llvm-svn: 327250
2018-03-12 03:50:07 +00:00
..
AArch64 Fix some misc. -enable-var-scope violations 2017-11-13 01:47:52 +00:00
AMDGPU [AMDGPU] Switch to the new addr space mapping by default 2018-02-02 16:07:16 +00:00
ARM [CodeGenPrepare] Improve source and dest alignments of memory intrinsics independently 2018-01-31 17:24:53 +00:00
Mips [CodeGenPrepare] Check that erased sunken address are not reused 2017-11-24 16:45:28 +00:00
NVPTX [BypassSlowDivision] Improve our handling of divisions by constants 2017-12-04 19:21:58 +00:00
X86 [CGP] Fix the remove of matched phis in complex addressing mode 2018-03-12 03:50:07 +00:00
2008-11-24-RAUW-Self.ll
basic.ll Let llvm.objectsize be conservative with null pointers 2017-03-21 20:08:59 +00:00
bitreverse-hang.ll
builtin-condition.ll Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
crash-on-large-allocas.ll Add a test for r307754 2017-07-12 16:30:37 +00:00
dom-tree.ll
gep-unmerging.ll Unmerge GEPs to reduce register pressure on IndirectBr edges. 2017-09-11 17:52:08 +00:00
invariant.group.ll Let llvm.invariant.group.barrier accepts pointer to any address space 2017-11-16 16:32:16 +00:00
nonintegral.ll [CodeGenPrepare] Don't create inttoptr for ni ptrs 2017-06-29 20:28:59 +00:00
overflow-intrinsics.ll
section-samplepgo.ll Restrict call metadata based hotness detection to Sample PGO mode 2017-05-11 23:18:05 +00:00
section.ll [PGO] Function section hotness prefix should look at all blocks 2017-12-20 17:53:10 +00:00
skip-merging-case-block.ll Revert "[CGP] Merge empty case blocks if no extra moves are added." 2017-10-27 00:35:18 +00:00
split-indirect-loop.ll [CodeGenPrepare] Fix crash due to an invalid CFG 2017-04-17 19:11:04 +00:00
statepoint-relocate.ll [CGP] Fix the rematerialization of gc.relocates 2017-08-17 05:48:30 +00:00