[llvm] [SPIRV] Prevent creation of jump tables from switch (PR #82287)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 06:34:30 PST 2024
================
@@ -31,6 +31,10 @@ class SPIRVTargetLowering : public TargetLowering {
return true;
}
+ // Set the lower limit for number of blocks in a jump table in such a way to
+ // prevent creation of jump tables from switch
+ unsigned getMinimumJumpTableEntries() const override { return 0xffffffff; }
----------------
Keenuts wrote:
Curious, what happens if the `-fjump-tables` option is used. Do we ignore it?
https://github.com/llvm/llvm-project/pull/82287
More information about the llvm-commits
mailing list