[PATCH] Switch lowering: extract jump tables and bit tests before building binary tree (PR22262)

Andy Ayers andya at microsoft.com
Thu Apr 23 12:27:27 PDT 2015


I think we're hitting an issue with this. Not 100% sure yet. Will try to get you something to test out but it will take some time.

We have a switch with cases 0...16. It gets put as a one-cluster jump table. Then we get an iterator out of bounds error in SelectionDagBuilder @7671 when trying to re-arrange case blocks since there's nothing to rearrange. Seems like this rearrangement code path could be avoided unless there are multiple clusters.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8649

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list