Commit 8609a346 authored by Logan Chien's avatar Logan Chien
Browse files

[ndk] Fix createBranchWeights() assertions.

Backport r196845 from the upstream to fix http://b.android.com/57381
The original commit message:

------------------------------------------------------------
commit cb3badc8949fb15ff5f812774c3ff9e698850f16
Author: Justin Bogner <mail   justinbogner com>
Date:   Tue Dec 10 00:13:41 2013 +0000

    Transforms: Don't create bad branch weights when folding a switch

    This avoids creating branch weight metadata of length one when we fold
    cases into the default of a switch instruction, which was triggering
    an assert.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196845 91177308-0d3
------------------------------------------------------------
parent 5b3c41cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment