[Passes] Reenable the relative lookup table converter pass for ELF and COFF on aarch64
authorMartin Storsjö <martin@martin.st>
Wed, 12 May 2021 09:03:54 +0000 (12:03 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 12 May 2021 13:42:11 +0000 (16:42 +0300)
commit4b98199ce8fb94d0de46e04b4d7b3a699691d2e1
tree1d35d7ecc86bb0cc9303b98fedefd320f6455987
parent5a439015393e616b2faed9a9fbb1d7036b28e786
[Passes] Reenable the relative lookup table converter pass for ELF and COFF on aarch64

The bug (PR50227, affecting COFF) that caused the revert in
6f5670a4c3d8c079d4b676140ee69e5cc235d5a8 has been fixed in
382c505d9cfca8adaec47aea2da7bbcbc00fc05c now, so it should be safe
to reenable the pass for that target (and ELF).

In PR50227 it's also mentioned that the same pass seems to cause
problems on aarch64 on darwin, so leaving it disabled there for now.
llvm/include/llvm/CodeGen/BasicTTIImpl.h