Sunday, September 23, 2007

Jump tables

Jump tables are a nice idea, but the way that LLVM is producing them is hurting the pass to break critical edges. My solution, not quite democratic, was to forbid jump tables altogether. To do this, I had to edit the file SelectionDAG/SelectionDAGISel.cpp. The method visitSwitch is responsible for creating jump tables. I simply commented that code out.
Now, my SelectionDAGISel.cpp looks like this.

0 Comments:

Post a Comment

<< Home