[all-commits] [llvm/llvm-project] 1a2bff: [InstCombine] reassociate sub+add to increase adds...

RotateRight via All-commits all-commits at lists.llvm.org
Tue May 26 11:49:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a2bffaf8b4567663f3001bd9c7532322e89f990
      https://github.com/llvm/llvm-project/commit/1a2bffaf8b4567663f3001bd9c7532322e89f990
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/sub.ll
    M llvm/test/Transforms/LoopVectorize/interleaved-accesses.ll

  Log Message:
  -----------
  [InstCombine] reassociate sub+add to increase adds and throughput

The -reassociate pass tends to transform this kind of pattern into
something that is worse for vectorization and codegen. See PR43953:
https://bugs.llvm.org/show_bug.cgi?id=43953

Follows-up the FP version of the same transform:
rGa0ce2338a083




More information about the All-commits mailing list