[PATCH] D34200: [PM/unswitch] Teach SimpleLoopUnswitch to do non-trivial unswitching, making it no longer even remotely simple.

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 15 00:31:21 PDT 2017


chandlerc updated this revision to Diff 119063.
chandlerc added a comment.
Herald added a subscriber: hiraditya.

Rebase onto the new LoopInfo API and get everything working. Also rebase into
a monorepo checkout.

Things are now working again and this patch can be experimented with, but
I still need to do some refactoring before it is ready for further review (that
is the last significant outstanding review comment AFAIK).


https://reviews.llvm.org/D34200

Files:
  llvm/include/llvm/Analysis/LoopInfo.h
  llvm/include/llvm/Analysis/LoopInfoImpl.h
  llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
  llvm/include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
  llvm/lib/Analysis/LoopPass.cpp
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Transforms/SimpleLoopUnswitch/2006-06-27-DeadSwitchCase.ll
  llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-cost.ll
  llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34200.119063.patch
Type: text/x-patch
Size: 174260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171015/9015d51c/attachment-0001.bin>


More information about the llvm-commits mailing list