[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 08:28:16 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:
Sure, wondering if a warning/error should be emitted in the driver if this flag is used with the spirv target.
https://github.com/llvm/llvm-project/pull/82287
More information about the llvm-commits
mailing list