Go to file
Duncan Sands 8fb2c3827c 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.

llvm-svn: 123911
2011-01-20 13:21:55 +00:00
clang Fix the computation of alignment for fields of packed+aligned structs. 2011-01-20 07:57:12 +00:00
compiler-rt Add missing <stdint.h> to build properly on Solaris. Patch by Joakim Johansson 2011-01-07 19:09:06 +00:00
debuginfo-tests Test case for r123199. 2011-01-11 00:31:01 +00:00
libcxx Add attribute to inlined member. 2011-01-13 20:05:05 +00:00
lldb Fixed the async packets (packets that need to be sent to the GDB server 2011-01-20 07:53:45 +00:00
llvm At -O123 the early-cse pass is run before instcombine has run. According to my 2011-01-20 13:21:55 +00:00