summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2017-06-27 12:43:08 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2017-06-27 12:43:08 +0000
commit84aafee4fbf3e7bd47b9b1accc8f45cfa337fc03 (patch)
tree4ecf54bb11d8f40ab8c93cb69f26bb7c196fbc9c /clang/lib/Format
parent87b0ab1f99be97530cf19a265a6be9f19826e989 (diff)
downloadbcm5719-llvm-84aafee4fbf3e7bd47b9b1accc8f45cfa337fc03.tar.gz
bcm5719-llvm-84aafee4fbf3e7bd47b9b1accc8f45cfa337fc03.zip
[SelectionDAG] set dereferenceable flag in MergeConsecutiveStores to fix assetion failure
When SelectionDAG merges consecutive stores and loads in MergeConsecutiveStores, it does not set dereferenceable flag for a created load instruction. This results in an assertion failure if SelectionDAG commonizes this load instruction with other load instructions, as well as it may miss optimization opportunities. This patch sat dereferenceable flag for the newly created load instruction if all the load instructions to be merged are dereferenceable. Differential Revision: https://reviews.llvm.org/D34679 llvm-svn: 306404
Diffstat (limited to 'clang/lib/Format')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud