[all-commits] [llvm/llvm-project] 482141: [DAGCombine] Fix splitting indexed loads in Forwar...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Fri Mar 27 16:04:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 482141134729237072cb94248381dab96ce34374
      https://github.com/llvm/llvm-project/commit/482141134729237072cb94248381dab96ce34374
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/PowerPC/pr45301.ll

  Log Message:
  -----------
  [DAGCombine] Fix splitting indexed loads in ForwardStoreValueToDirectLoad()

In DAGCombiner::visitLOAD() we perform some checks before breaking up an indexed
load. However, we don't do the same checking in ForwardStoreValueToDirectLoad()
which can lead to failures later during combining
(see: https://bugs.llvm.org/show_bug.cgi?id=45301).

This patch just adds the same checks to this function as well.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=45301

Differential revision: https://reviews.llvm.org/D76778




More information about the All-commits mailing list