aboutsummaryrefslogtreecommitdiffstats
path: root/test/Object/nm-trivial-object.test
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-01-20 13:21:55 +0000
committerDuncan Sands <baldrick@free.fr>2011-01-20 13:21:55 +0000
commit9d32f60a6f7dbd8e83187481cd2ae0a2f3e726ce (patch)
tree8d74a9b8fb36ba54bafc3ec519d882a2dd04f38c /test/Object/nm-trivial-object.test
parent8197754be57abba9bbce4733de8d887f341ea339 (diff)
downloadexternal_llvm-9d32f60a6f7dbd8e83187481cd2ae0a2f3e726ce.zip
external_llvm-9d32f60a6f7dbd8e83187481cd2ae0a2f3e726ce.tar.gz
external_llvm-9d32f60a6f7dbd8e83187481cd2ae0a2f3e726ce.tar.bz2
At -O123 the early-cse pass is run before instcombine has run. According to my
auto-simplier the transform most missed by early-cse is (zext X) != 0 -> X != 0. This patch adds this transform and some related logic to InstructionSimplify and removes some of the logic from instcombine (unfortunately not all because there are several situations in which instcombine can improve things by making new instructions, whereas instsimplify is not allowed to do this). At -O2 this often results in more than 15% more simplifications by early-cse, and results in hundreds of lines of bitcode being eliminated from the testsuite. I did see some small negative effects in the testsuite, for example a few additional instructions in three programs. One program, 483.xalancbmk, got an additional 35 instructions, which seems to be due to a function getting an additional instruction and then being inlined all over the place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/nm-trivial-object.test')
0 files changed, 0 insertions, 0 deletions