[PATCH] D47203: [LowerSwitch] Fixed faulty PHI node in switch default block

Karl-Johan Karlsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 09:30:09 PDT 2018


Ka-Ka created this revision.
Ka-Ka added reviewers: hans, reames, arsenm.
Herald added a subscriber: wdng.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D47203

Files:
  lib/Transforms/Utils/LowerSwitch.cpp
  test/Transforms/Util/lowerswitch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47203.148026.patch
Type: text/x-patch
Size: 3450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180522/70a3616d/attachment-0001.bin>


More information about the llvm-commits mailing list