[PATCH] D94355: [SimplifyCFG] Add relative switch lookup tables

Gulfem Savrun Yeniceri via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 18:32:02 PST 2021


gulfem added a comment.

In D94355#2488437 <https://reviews.llvm.org/D94355#2488437>, @lebedev.ri wrote:

> Why must values have pointer types?

This optimization is only applied if the values have pointer types like strings to generate PIC friendly code for such cases.
If the values are not pointers but like integers, PIC friendly code is already generated without this optimization.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94355/new/

https://reviews.llvm.org/D94355



More information about the llvm-commits mailing list