Recommit "[SimpleLoopUnswitch] Collect either logical ANDs/ORs but not both."
authorFlorian Hahn <flo@fhahn.com>
Mon, 9 May 2022 12:49:12 +0000 (13:49 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 9 May 2022 12:49:12 +0000 (13:49 +0100)
commit41e142fdc797fead0b64f51dd9051c81853efa06
treea23d43bb0e24533f5f6650b5c2295f2e6fc35a68
parent4c569ceeaad6a0d0c2feec1177f382afc716ceca
Recommit "[SimpleLoopUnswitch] Collect either logical ANDs/ORs but not both."

This reverts commit 7211d5ce07830ebfa2cfc30818cd7155375f7e47.

This version fixes a crash that caused buildbot failures with the first
version.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-freeze.ll
llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-trivial-select.ll
llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch.ll
llvm/test/Transforms/SimpleLoopUnswitch/trivial-unswitch-freeze-individual-conditions.ll
llvm/test/Transforms/SimpleLoopUnswitch/trivial-unswitch-logical-and-or.ll