[PATCH] D124549: [SimpleLoopUnswitch] Freeze trivial conditions if needed.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 12:21:29 PDT 2022


fhahn created this revision.
fhahn added reviewers: asbirlea, reames, nlopes, aqjune.
Herald added a subscriber: hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

Trivial unswitching can also introduce new branches on undef/poison.
Freeze the conditions if needed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124549

Files:
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Transforms/SimpleLoopUnswitch/LIV-loop-condtion.ll
  llvm/test/Transforms/SimpleLoopUnswitch/trivial-unswitch-logical-and-or.ll
  llvm/test/Transforms/SimpleLoopUnswitch/trivial-unswitch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124549.425587.patch
Type: text/x-patch
Size: 5149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220427/f72fb30b/attachment.bin>


More information about the llvm-commits mailing list