]> git.ipfire.org Git - thirdparty/gcc.git/commit
ifcombine: skip fallback conjunction on noncontiguous blocks
authorAlexandre Oliva <oliva@adacore.com>
Wed, 27 Nov 2024 09:27:12 +0000 (06:27 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 27 Nov 2024 09:27:12 +0000 (06:27 -0300)
commit32f6485849c8268f5c7bd8454702bfec369768b1
tree3dcccc5a6737f80e4628c31d7dc396bef10357a3
parentfed871f93c235da8ccba29d7beb715abc1482e59
ifcombine: skip fallback conjunction on noncontiguous blocks

When everything else fails, if enabled by the target or by a
parameter, and when other requirements are satisfied, ifcombine
generates an AND of both conditions.

That may be good for contiguous conditions, but it's unlikely to be an
optimization when the blocks are separate.

Add contiguity to the set of requirements for this fallback
transformation.

for  gcc/ChangeLog

* tree-ssa-ifcombine.cc (ifcombine_ifandif): Avoid fallback
conjunction of noncontiguous conditions.
gcc/tree-ssa-ifcombine.cc