]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-ifcvt: Add zero maskload else value.
authorRobin Dapp <rdapp@ventanamicro.com>
Thu, 8 Aug 2024 10:54:36 +0000 (12:54 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Mon, 18 Nov 2024 10:48:41 +0000 (11:48 +0100)
commit6b6bd53619fd11bab3def8dee737711a7ee539ea
tree7633bfa749a80103fcb0cc4d1460e75b75caf5f4
parent8f68d9cb7897df188f7dcd733d8c385f77fd8011
tree-ifcvt: Add zero maskload else value.

When predicating a load we implicitly assume that the else value is
zero.  This matters in case the loaded value is padded (like e.g.
a Bool) and we must ensure that the padding bytes are zero on targets
that don't implicitly zero inactive elements.

A former version of this patch still had this handling in ifcvt but
the latest version defers it to the vectorizer.

gcc/ChangeLog:

* tree-if-conv.cc (predicate_load_or_store): Add zero else
operand and comment.
gcc/tree-if-conv.cc