[SelectionDAG] makeEquivalentMemoryOrdering - early out for equal chains (PR42727)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 24 Jul 2019 16:53:14 +0000 (16:53 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 24 Jul 2019 16:53:14 +0000 (16:53 +0000)
commit3f01c7197f065d34c1d5e166e47193a6b39c5fbd
tree0ffb23deb3e5fdb278f1331c10a009cd40934129
parent5e1dd02c90995f4ce3ec183b9c62a423a1534530
[SelectionDAG] makeEquivalentMemoryOrdering - early out for equal chains (PR42727)

If we are already using the same chain for the old/new memory ops then just return.

Fixes PR42727 which had getLoad() reusing an existing node.

llvm-svn: 366922
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/pr42727.ll [new file with mode: 0644]