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

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 9 01:29:12 PST 2017


nemanjai updated this revision to Diff 126271.
nemanjai added a comment.

Address comments from Eli. Thanks Eli!

- Make caching of `SwitchInst`s already known not to be suitable for jump tables thread-safe
- Add similar caching mechanism for results of `mightUseCTR()`
- Fix a test case I initially forgot to fix


Repository:
  rL LLVM

https://reviews.llvm.org/D41029

Files:
  include/llvm/CodeGen/TargetLowering.h
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/PowerPC/PPCISelLowering.h
  test/CodeGen/PowerPC/NoJTsDueToCTRUse.ll
  test/CodeGen/PowerPC/mcm-5.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41029.126271.patch
Type: text/x-patch
Size: 20741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171209/f21b48f4/attachment.bin>


More information about the llvm-commits mailing list