[DAG] Fix condition on overlapping store check.
authorNirav Dave <niravd@google.com>
Wed, 20 Dec 2017 19:06:47 +0000 (19:06 +0000)
committerNirav Dave <niravd@google.com>
Wed, 20 Dec 2017 19:06:47 +0000 (19:06 +0000)
commita869856c6020d8135901f93fd696c2fdd00854ea
treed8e5f216bed6c62b01bd61e61334efc92ca23b89
parent3fd1b1a764c856c11748619ca5fecf5b22ef0880
[DAG] Fix condition on overlapping store check.

Prevent overlapping store elision when overlapping store is
pre-inc/dec as analysis is wrong in these cases.

llvm-svn: 321204
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp