[llvm] [SPIRV] Prevent creation of jump tables from switch (PR #82287)
Vyacheslav Levytskyy via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 01:49:24 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; }
----------------
VyacheslavLevytskyy wrote:
Thank you, I think you are right, `areJTsAllowed` looks better. Changed
https://github.com/llvm/llvm-project/pull/82287
More information about the llvm-commits
mailing list