SelectionDAG switch lowering: use 'unsigned' to count destination popularity
authorHans Wennborg <hans@hanshq.net>
Tue, 16 Dec 2014 23:41:59 +0000 (23:41 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 16 Dec 2014 23:41:59 +0000 (23:41 +0000)
commit74b5b195fdc9a9eba82e2813b1586f491a534c1e
tree87ca4a2a913e9cb9de1cd5b887de5648a707fb65
parent526a14a344a0272a7f81046f5dab068c41d47342
SelectionDAG switch lowering: use 'unsigned' to count destination popularity

SwitchInst::getNumCases() returns unsinged, so using uint64_t to count cases
seems unnecessary.

Also fix a missing CHECK in the test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224393 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/switch-jump-table.ll