llvm-project/llvm/test/Transforms/Util
Karl-Johan Karlsson 1ffeb5d7f0 [LowerSwitch] Fixed faulty PHI nodes
Summary:
Fixed two cases of where PHI nodes need to be updated by lowerswitch.

When lowerswitch find out that the switch default branch is not
reachable it remove the old default and replace it with the most
popular block from the cases, but it forget to update the PHI
nodes in the default block.

The PHI nodes also need to be updated when the switch is replaced
with a single branch.

Reviewers: hans, reames, arsenm

Reviewed By: arsenm

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

llvm-svn: 336659
2018-07-10 12:06:16 +00:00
..
PredicateInfo [PredicateInfo] Order instructions in different BBs by DFSNumIn. 2018-06-20 17:42:01 +00:00
PR37334-break-crit-edges-require-dt.ll Require DominatorTree when requiring/preserving LoopInfo in the old pass manager 2018-05-17 09:05:40 +00:00
clone-dicompileunit.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
combine-alias-scope-metadata.ll Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1) 2018-01-19 17:13:12 +00:00
flattencfg.ll
libcalls-fast-math-inf-loop.ll [SimplifyLibCalls] Fix infinite loop with fast-math optimization. 2017-04-25 12:36:14 +00:00
libcalls-opt-remarks.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
libcalls-shrinkwrap-double.ll
libcalls-shrinkwrap-float.ll
libcalls-shrinkwrap-long-double.ll
lowerinvoke-funclet.ll Support a funclet operand bundle in LowerInvoke 2018-05-09 00:53:50 +00:00
lowerswitch.ll [LowerSwitch] Fixed faulty PHI nodes 2018-07-10 12:06:16 +00:00
simplify-dbg-declare-load.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
split-bit-piece.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
store-first-op.ll
strip-gc-relocates.ll
strip-nonlinetable-debuginfo-containingtypes.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
strip-nonlinetable-debuginfo-cus.ll
strip-nonlinetable-debuginfo-localvars.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
strip-nonlinetable-debuginfo-loops.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
strip-nonlinetable-debuginfo-subroutinetypes.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00