Chris Lattner
|
ea5c4bd51c
|
fix Transforms/Inline/2007-06-25-WeakInline.ll by not inlining functions
with weak linkage.
llvm-svn: 37723
|
2007-06-25 21:50:09 +00:00 |
Tanya Lattner
|
c655839d71
|
Moved Inliner.h to include/llvm/Transforms/IPO/InlinerPass.h
llvm-svn: 37666
|
2007-06-19 22:31:52 +00:00 |
Tanya Lattner
|
ab11b1c702
|
Inliner pass header file was moved.
llvm-svn: 37665
|
2007-06-19 22:29:50 +00:00 |
Devang Patel
|
cf470e5255
|
Do not use ETForest as well as DomiantorTree. DominatorTree is sufficient.
llvm-svn: 37501
|
2007-06-07 22:17:16 +00:00 |
Tanya Lattner
|
5801c23e05
|
Formating fixes.
llvm-svn: 37491
|
2007-06-07 17:12:16 +00:00 |
Tanya Lattner
|
cb90f1d881
|
Instruct the inliner to obey the noinline attribute. Add test case.
llvm-svn: 37481
|
2007-06-06 21:59:26 +00:00 |
Chris Lattner
|
34404e3247
|
simplify this code and fix PR1493, now that llvm-gcc3 is dead.
llvm-svn: 37478
|
2007-06-06 20:51:41 +00:00 |
Chris Lattner
|
d7897d40b6
|
When rebuilding constant structs, make sure to honor the isPacked bit.
This fixes PR1491 and GlobalOpt/2007-06-04-PackedStruct.ll
llvm-svn: 37423
|
2007-06-04 22:23:42 +00:00 |
Chris Lattner
|
66ad6fac2f
|
selects can also reach here
llvm-svn: 37081
|
2007-05-15 06:42:04 +00:00 |
Chris Lattner
|
cea37beb52
|
Fix Transforms/GlobalOpt/2007-05-13-Crash.ll
llvm-svn: 37020
|
2007-05-13 21:28:07 +00:00 |
Chris Lattner
|
3b6f75cb2f
|
Fix PR1395, by passing the ID correctly
llvm-svn: 36894
|
2007-05-06 23:13:56 +00:00 |
Nick Lewycky
|
e7da2d6ac3
|
Fix typo in comment.
llvm-svn: 36873
|
2007-05-06 13:37:16 +00:00 |
Devang Patel
|
8c78a0bff0
|
Drop 'const'
llvm-svn: 36662
|
2007-05-03 01:11:54 +00:00 |
Devang Patel
|
e95c6ad802
|
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
llvm-svn: 36652
|
2007-05-02 21:39:20 +00:00 |
Devang Patel
|
09f162ca6a
|
Do not use typeinfo to identify pass in pass manager.
llvm-svn: 36632
|
2007-05-01 21:15:47 +00:00 |
Anton Korobeynikov
|
546ea7ea88
|
Implement review feedback
llvm-svn: 36564
|
2007-04-29 18:02:48 +00:00 |
Anton Korobeynikov
|
b18f8f85e9
|
Implement review feedback. Aliasees can be either GlobalValue's or
bitcasts of them.
llvm-svn: 36537
|
2007-04-28 13:45:00 +00:00 |
Anton Korobeynikov
|
a97b694c82
|
Implement aliases. This fixes PR1017 and it's dependent bugs. CFE part
will follow.
llvm-svn: 36435
|
2007-04-25 14:27:10 +00:00 |
Anton Korobeynikov
|
fb80151c42
|
Removed tabs everywhere except autogenerated & external files. Add make
target for tabs checking.
llvm-svn: 36146
|
2007-04-16 18:10:23 +00:00 |
Chris Lattner
|
f8a7bf317e
|
fix SimplifyLibCalls/IsDigit.ll
llvm-svn: 36047
|
2007-04-15 05:38:40 +00:00 |
Chris Lattner
|
6f58839b20
|
avoid iterator invalidation.
llvm-svn: 36002
|
2007-04-14 18:06:52 +00:00 |
Jeff Cohen
|
4bd0fd367a
|
An even better fix.
llvm-svn: 35998
|
2007-04-14 17:18:29 +00:00 |
Jeff Cohen
|
7233aa9369
|
Fix recent regression that broke several llvm-tests.
llvm-svn: 35996
|
2007-04-14 16:55:19 +00:00 |
Chris Lattner
|
49fa8d2bff
|
Implement a few missing xforms: printf("foo\n") -> puts. printf("x") -> putchar
printf("") -> noop. Still need to do the xforms for fprintf.
This implements Transforms/SimplifyLibCalls/Printf.ll
llvm-svn: 35984
|
2007-04-14 01:17:48 +00:00 |
Chris Lattner
|
02137eec8f
|
in addition to merging, constantmerge should also delete trivially dead globals,
in order to clean up after simplifylibcalls.
llvm-svn: 35982
|
2007-04-14 01:11:54 +00:00 |
Lauro Ramos Venancio
|
749e4668e7
|
Implement the "thread_local" keyword.
llvm-svn: 35950
|
2007-04-12 18:32:50 +00:00 |
Chris Lattner
|
aa8ad10c2f
|
Fix a typo that broke SimplifyLibCalls/SPrintF.ll (pr1315)
llvm-svn: 35768
|
2007-04-08 18:11:26 +00:00 |
Chris Lattner
|
5717981e5d
|
implement a fixme: move optimizations for fwrite out of fputs into a new
fwrite optimizer.
llvm-svn: 35758
|
2007-04-08 07:00:35 +00:00 |
Chris Lattner
|
182a945fb5
|
Significantly simplify the clients of GetConstantStringInfo, by having it
just return the string itself.
llvm-svn: 35755
|
2007-04-07 21:58:02 +00:00 |
Chris Lattner
|
08c0b8b3c8
|
Fix problems in the sprintf optimizer
llvm-svn: 35754
|
2007-04-07 21:17:51 +00:00 |
Chris Lattner
|
bed184cbcf
|
Change CastToCStr to take a pointer instead of a reference.
Fix some miscompilations in fprintf optimizer.
llvm-svn: 35753
|
2007-04-07 21:04:50 +00:00 |
Chris Lattner
|
898d698d9f
|
Fix an off-by-one error that broke Prolangs/deriv2 with llc on x86
and Prolangs-C/cdecl
llvm-svn: 35749
|
2007-04-07 20:19:08 +00:00 |
Owen Anderson
|
f095bf3ac4
|
Expunge DomSet from CodeExtractor. This is part of the continuing work
on PR1171.
llvm-svn: 35726
|
2007-04-07 05:31:27 +00:00 |
Chris Lattner
|
0f1509511e
|
fix a miscompilation in printf optimizer.
llvm-svn: 35713
|
2007-04-07 01:18:36 +00:00 |
Chris Lattner
|
6a36d636e9
|
trunc to bool no longer compares against zero
llvm-svn: 35712
|
2007-04-07 01:03:46 +00:00 |
Chris Lattner
|
e8829aa9dd
|
cleanups for strlen optimizer
llvm-svn: 35711
|
2007-04-07 01:02:00 +00:00 |
Chris Lattner
|
485b6415b1
|
Introduce a new ReplaceCallWith method, which simplifies a lot of code.
llvm-svn: 35710
|
2007-04-07 00:42:32 +00:00 |
Chris Lattner
|
6a6c1f1c30
|
fixes for strcpy optimizer
llvm-svn: 35709
|
2007-04-07 00:26:18 +00:00 |
Chris Lattner
|
f9ee647e86
|
Fix bugs in strncmp.
llvm-svn: 35708
|
2007-04-07 00:06:57 +00:00 |
Chris Lattner
|
c9ccc30212
|
fix 3 miscompilations and several compielr crashes in strcmp optimizer.
llvm-svn: 35707
|
2007-04-07 00:01:51 +00:00 |
Chris Lattner
|
39f0bb9670
|
Fix several nasty bugs in the strchr optimizer, this fixes
SimplifyLibCalls/2007-04-06-strchr-miscompile.ll and PR1307
llvm-svn: 35706
|
2007-04-06 23:38:55 +00:00 |
Chris Lattner
|
56b7fc7768
|
clean up strcat optimizer, no functionality change.
llvm-svn: 35704
|
2007-04-06 22:59:33 +00:00 |
Chris Lattner
|
9b2b8abd20
|
rename getConstantStringLength -> GetConstantStringInfo. Make it return
the start index of the array as well as the length. No functionality change.
llvm-svn: 35703
|
2007-04-06 22:54:17 +00:00 |
Chris Lattner
|
1a9a760318
|
Fix Transforms/GlobalOpt/2007-04-05-Crash.ll
llvm-svn: 35689
|
2007-04-05 21:09:42 +00:00 |
Jeff Cohen
|
b622c11f77
|
Unbreak VC++ build.
llvm-svn: 34917
|
2007-03-05 00:00:42 +00:00 |
Reid Spencer
|
2e54a15943
|
Prefer non-virtual calls to ConstantInt::isZero over virtual calls to
Constant::isNullValue() in situations where it is possible.
llvm-svn: 34821
|
2007-03-02 00:28:52 +00:00 |
Reid Spencer
|
5b0548de77
|
Use APInt conversion to string so the result is correct regardless of the
bit width of the ConstantInt being converted.
llvm-svn: 34810
|
2007-03-01 21:00:32 +00:00 |
Chris Lattner
|
9f4707eb04
|
fix comment
llvm-svn: 34395
|
2007-02-18 22:10:58 +00:00 |
Chris Lattner
|
a6f54c0e2c
|
simplify pass, delete dead gvar protos as well.
llvm-svn: 34394
|
2007-02-18 22:10:34 +00:00 |
Reid Spencer
|
d84d35ba70
|
For PR1195:
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.
llvm-svn: 34293
|
2007-02-15 02:26:10 +00:00 |