[all-commits] [llvm/llvm-project] 321d92: [DAGCombine] Fix splitting indexed loads in Forwar...
Nemanja Ivanovic via All-commits
all-commits at lists.llvm.org
Tue Apr 14 20:09:27 PDT 2020
Branch: refs/heads/release/10.x
Home: https://github.com/llvm/llvm-project
Commit: 321d929774c6fa0767e4ae5eb0881ad15e7a4664
https://github.com/llvm/llvm-project/commit/321d929774c6fa0767e4ae5eb0881ad15e7a4664
Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
Date: 2020-04-14 (Tue, 14 Apr 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
(cherry picked from commit 482141134729237072cb94248381dab96ce34374)
More information about the All-commits
mailing list