This is a one-line-change patch that moves the update to UnhandledWeights to the correct position: it should be updated for all clusters instead of just range clusters.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/CodeGen/X86/switch-edge-weight.ll | ||
---|---|---|
7 | Done. I have simplified the function as suggested by you (previously I just copies it from another test case but I should look for a simplest one). Thank you! |
Please add a CHECK-LABEL and move this into or after the @test function.
The alloca, store and load, etc. seem unnecessary. Can the test just switch on the function parameter?