]> granicus.if.org Git - clang/commit
Invoke simplifycfg and sroa before instcombine.
authorDehao Chen <dehao@google.com>
Thu, 23 Jun 2016 20:13:10 +0000 (20:13 +0000)
committerDehao Chen <dehao@google.com>
Thu, 23 Jun 2016 20:13:10 +0000 (20:13 +0000)
commit934217e9c9d28a9d630c9cbec73885180c9bc32b
tree51d136754d164d08653abb5d74490b3eb8f0b857
parent0b79e05d0ec7b3e235506db9837bb6f74c7cd829
Invoke simplifycfg and sroa before instcombine.

Summary: InstCombine needs to be performed after simplifycfg and sroa, otherwise it may make bad optimization decisions.

Reviewers: davidxl, wmi, dnovillo

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D21568

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273606 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/pgo-sample-preparation.c [new file with mode: 0644]
test/CodeGen/pgo-sample.c