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

Bill Schmidt via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 06:26:05 PDT 2022


wjschmidt 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
+
----------------
fhahn wrote:
> 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. 
OK, will replace all undefs with constants.


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