[llvm] r257679 - [Hexagon] Fix the options controlling jump table generation

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 13 13:43:13 PST 2016


Author: kparzysz
Date: Wed Jan 13 15:43:13 2016
New Revision: 257679

URL: http://llvm.org/viewvc/llvm-project?rev=257679&view=rev
Log:
[Hexagon] Fix the options controlling jump table generation

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp?rev=257679&r1=257678&r2=257679&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp Wed Jan 13 15:43:13 2016
@@ -1629,9 +1629,9 @@ HexagonTargetLowering::HexagonTargetLowe
   setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Custom);
 
   if (EmitJumpTables)
-    setMinimumJumpTableEntries(2);
-  else
     setMinimumJumpTableEntries(MinimumJumpTables);
+  else
+    setMinimumJumpTableEntries(INT_MAX);
   setOperationAction(ISD::BR_JT, MVT::Other, Expand);
 
   // Hexagon has instructions for add/sub with carry. The problem with




More information about the llvm-commits mailing list