- Nov 23, 2010
-
-
Duncan Sands authored
(which does constant folding and more) is called a few lines later. llvm-svn: 120042
-
Jason W Kim authored
llvm-svn: 120035
-
Bob Wilson authored
We need to check if the individual vector elements are sign/zero-extended values. For now this only handles constants values. Radar 8687140. llvm-svn: 120034
-
Bob Wilson authored
llvm-svn: 120033
-
Benjamin Kramer authored
This allows to transform the rem in "1 << ((int)x % 8);" to an and. llvm-svn: 120028
-
Duncan Sands authored
Stylistic improvement suggested by Frits van Bommel. llvm-svn: 120026
-
Duncan Sands authored
llvm-svn: 120025
-
Duncan Sands authored
fairly systematic way in instcombine. Some of these cases were already dealt with, in which case I removed the existing code. The case of Add has a bunch of funky logic which covers some of this plus a few variants (considers shifts to be a form of multiplication), which I didn't touch. The simplification performed is: A*B+A*C -> A*(B+C). The improvement is to do this in cases that were not already handled [such as A*B-A*C -> A*(B-C), which was reported on the mailing list], and also to do it more often by not checking for "only one use" if "B+C" simplifies. llvm-svn: 120024
-
Kalle Raiskila authored
shifts. llvm-svn: 120022
-
Rafael Espindola authored
llvm-svn: 120017
-
Duncan Sands authored
llvm-svn: 120016
-
Duncan Sands authored
are constant. There was in fact one exception to this (phi nodes) - so remove that exception (InstructionSimplify handles this so there should be no loss). llvm-svn: 120015
-
Rafael Espindola authored
While here, remove unused argument and rename UpdateForSlide to Invalidate. llvm-svn: 120009
-
Rafael Espindola authored
llvm-svn: 120006
-
Cameron Zwarich authored
9.7% speedup running domtree on test-suite. Reviewed by Chris Lattner. llvm-svn: 120003
-
Chris Lattner authored
documented and only used by some clang stuff I just removed. llvm-svn: 120002
-
Rafael Espindola authored
llvm-svn: 119999
-
Zhanyong Wan authored
llvm-svn: 119998
-
Chris Lattner authored
llvm-svn: 119994
-
Chris Lattner authored
llvm-svn: 119993
-
Chris Lattner authored
being in terms of excessively complex template logic. llvm-svn: 119992
-
Wesley Peck authored
llvm-svn: 119990
-
Chris Lattner authored
patch by Greg Pfeil! llvm-svn: 119989
-
Chris Lattner authored
on this instcombine xform. This fixes a miscompilation of 403.gcc. llvm-svn: 119988
-
Chris Lattner authored
llvm-svn: 119987
-
- Nov 22, 2010
-
-
Jason W Kim authored
llvm-svn: 119986
-
Rafael Espindola authored
llvm-svn: 119985
-
Benjamin Kramer authored
llvm-svn: 119984
-
Jason W Kim authored
llvm-svn: 119982
-
Jason W Kim authored
llvm-svn: 119981
-
Jason W Kim authored
llvm-svn: 119979
-
Jason W Kim authored
Refactor the ELFRelocationEntry (pull up) and move the arch-specific statics to inside the class where it belongs. Next step is to rationally break apart the RecordRelocation() Probably the step will be to have 1 member function for ech slot of the ELFRelocationEntry() llvm-svn: 119978
-
Evan Cheng authored
state. Previously Thumb2 would restore sp from fp like this: mov sp, r7 sub, sp, #4 If an interrupt is taken after the 'mov' but before the 'sub', callee-saved registers might be clobbered by the interrupt handler. Instead, try restoring directly from sp: add sp, #4 Or, if necessary (with VLA, etc.) use a scratch register to compute sp and then restore it: sub.w r4, r7, #8 mov sp, r7 rdar://8465407 llvm-svn: 119977
-
Mikhail Glushenkov authored
llvm-svn: 119976
-
Mikhail Glushenkov authored
llvm-svn: 119975
-
Duncan Sands authored
then replace the index with zero. llvm-svn: 119974
-
Kalle Raiskila authored
In the attached testcase, the element was never extracted (missing rotate). llvm-svn: 119973
-
Rafael Espindola authored
llvm-svn: 119972
-
Duncan Sands authored
InstructionSimplify. llvm-svn: 119970
-
Rafael Espindola authored
llvm-svn: 119967
-