[all-commits] [llvm/llvm-project] 49754d: [WebAssembly] Fix bug in FixBrTables and use branc...

Thomas Lively via All-commits all-commits at lists.llvm.org
Wed Jun 17 12:35:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 49754dcf22127b236892e4e46945e951bf790c44
      https://github.com/llvm/llvm-project/commit/49754dcf22127b236892e4e46945e951bf790c44
  Author: Thomas Lively <tlively at google.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
    M llvm/test/CodeGen/WebAssembly/switch-unreachable-default.ll

  Log Message:
  -----------
  [WebAssembly] Fix bug in FixBrTables and use branch analysis utils

Summary:
This commit fixes a bug in the FixBrTables pass in which an
unconditional branch from the switch header block to the jump table
block was not removed before the blocks were combined. The result was
an invalid CFG in the MachineFunction. This commit also switches from
using bespoke branch analysis and deletion code to using the standard
utilities for the same.

Reviewers: aheejin, dschuff

Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list