[PATCH] D12166: Assign weights to edges to jump table when lowering switch statement.

Cong Hou via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 15:36:28 PDT 2015


congh updated this revision to Diff 33136.
congh added a comment.

Change the type of weight from uint64_t to uint32_t as there won't be overflow in calculation.

Add a test case that checks if the edge weight to the jump table is correct.


http://reviews.llvm.org/D12166

Files:
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  test/CodeGen/ARM/jump-table-islands.ll
  test/CodeGen/Mips/nacl-align.ll
  test/CodeGen/X86/switch-jump-table.ll
  test/CodeGen/X86/switch.ll
  test/CodeGen/X86/x86-shrink-wrapping.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12166.33136.patch
Type: text/x-patch
Size: 7518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150825/1cc60c60/attachment.bin>


More information about the llvm-commits mailing list