[PATCH] D124867: [SLP][NFC] Pre-commit test showing horizontal reduction preventing FMA

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 01:11:59 PDT 2022


fhahn added inline comments.


================
Comment at: llvm/test/Transforms/SLPVectorizer/X86/slp-reduc-fma-loss.ll:40
+  %x.616 = fadd fast double %x.615, %x.597
+  br i1 undef, label %exit, label %loop
+
----------------
wjschmidt wrote:
> vporpo wrote:
> > The test should still work without the loop
> Sadly, it does not.  If I remove the loop branches and the phi and replace the phi uses with undef, the vectorizer no longer finds the horizontal reduction profitable.
Please avoid using undef. In most cases, it prevents automatic verification or at least makes it more difficult. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124867/new/

https://reviews.llvm.org/D124867



More information about the llvm-commits mailing list