gulfem updated this revision to Diff 326265.
gulfem added a comment.
Herald added subscribers: wenlei, nikic, kerbowa, steven_wu, nhaehnle, jvesely.
- Rename the pass to RelLookupTableConverter to be consistent
- Addressed reviewers' feedback
- Added tests for user-defined lookup tables and hidden
leonardchan added a comment.
It looks like you have everything setup for running on the new PM, but it
doesn't look like the pass is added anywhere in the new PM pipeline.
Unfortunately, I don't *think* there's anything in the new PM that acts as a
"default pipeline that gets added to all other
hans added a comment.
Thanks for pushing this forward! I think this will be a nice transformation
once all the details are worked out.
Comment at: clang/test/CodeGen/switch-to-lookup-table.c:2
+// Check switch to lookup optimization in fPIC and fno-PIC mode
+// RUN: %clang_cc1