[PATCH] D41029: [JumpTables][PowerPC] Let targets decide which switch instructions are suitable for jump tables

Eric Christopher via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 16:31:02 PST 2017


echristo accepted this revision.
echristo added a comment.
This revision is now accepted and ready to land.

One inline comment then LGTM.

-eric



================
Comment at: lib/Target/PowerPC/PPCISelLowering.h:570-572
+    unsigned getMinimumJumpTableEntries() const override {
+      return 7;
+    }
----------------
This seems randomly chosen. How'd we pick 7? Can we describe it in a comment?


Repository:
  rL LLVM

https://reviews.llvm.org/D41029





More information about the llvm-commits mailing list