mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
04d7d13d30
When the switch-to-lookup tables transform landed in SimplifyCFG, it was pointed out that this could be inappropriate for some targets. Since there was no way at the time for the pass to know anything about the target, an awkward reverse-transform was added in CodeGenPrepare that turned lookup tables back into switches for some targets. This patch uses the new TargetTransformInfo to determine if a switch should be transformed, and removes CodeGenPrepare::ConvertLoadToSwitch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167011 91177308-0d34-0410-b5e6-96231b3b80d8
7 lines
151 B
INI
7 lines
151 B
INI
config.suffixes = ['.ll', '.c', '.cpp']
|
|
|
|
targets = set(config.root.targets_to_build.split())
|
|
if not 'Sparc' in targets:
|
|
config.unsupported = True
|
|
|