- Feb 03, 2010
-
-
Devang Patel authored
llvm-svn: 95240
-
Jeffrey Yasskin authored
1-argument ExecutionEngine::create(Module*) ambiguous with the signature that used to be ExecutionEngine::create(ModuleProvider*, defaulted_params). Fixed by removing the 1-argument create(). Fixes PR6221. llvm-svn: 95236
-
Daniel Dunbar authored
output. llvm-svn: 95227
-
Bob Wilson authored
The SRThreshold value makes perfect sense for checking if an entire aggregate should be promoted to a scalar integer, but it is not so good for splitting an aggregate into its separate elements. A struct may contain a large embedded array along with some scalar fields that would benefit from being split apart by SROA. Even if the total aggregate size is large, it may still be good to perform SROA. Thus, the most important piece of this patch is simply moving the aggregate size comparison vs. SRThreshold so that it guards only the aggregate promotion. We have also been checking the number of elements to decide if an aggregate should be split up. The limit of "SRThreshold/4" seemed rather arbitrary, and I don't think it's very useful to derive this limit from SRThreshold anyway. I've collected some data showing that the current default limit of 32 (since SRThreshold defaults to 128) is a reasonable cutoff for struct types. One thing suggested by the data is that distinguishing between structs and arrays might be useful. There are (obviously) a lot more large arrays than large structs (as measured by the number of elements and not the total size -- a large array inside a struct still counts as a single element given the way we do SROA right now). Out of 8377 arrays where we successfully performed SROA while compiling a large set of benchmarks, only 16 of them had more than 8 elements. And, for those 16 arrays, it's not at all clear that SROA was actually beneficial. So, to offset the compile time cost of investigating more large structs for SROA, the patch lowers the limit on array elements to 8. This fixes Apple Radar 7563690. llvm-svn: 95224
-
Chris Lattner authored
llvm-svn: 95209
-
Chris Lattner authored
llvm-svn: 95208
-
Chris Lattner authored
so that llvm-mc -show-encoding prints like this: hlt ## encoding: [0xf4] instead of like this: hlt # encoding: [0xf4] llvm-svn: 95207
-
Chris Lattner authored
instead of textually. llvm-svn: 95206
-
Chris Lattner authored
of const ones. non-const ones aren't very useful, because you can't even, say, emit them. llvm-svn: 95205
-
Chris Lattner authored
add -filetype=null for performance testing and remove -filetype=dynlib, which isn't planned to be implemented. llvm-svn: 95202
-
Evan Cheng authored
llvm-svn: 95198
-
John McCall authored
as undefined. Fixes an assertion in APFloat::toString noticed by Dale. llvm-svn: 95196
-
Evan Cheng authored
Allow all types of callee's to be tail called. But avoid automatic tailcall if the callee is a result of bitcast to avoid losing necessary zext / sext etc. llvm-svn: 95195
-
Chris Lattner authored
.o files don't like that. llvm-svn: 95187
-
Chris Lattner authored
llvm-svn: 95186
-
Chris Lattner authored
llvm-svn: 95184
-
Dale Johannesen authored
llvm-svn: 95183
-
Chris Lattner authored
llvm-svn: 95181
-
Chris Lattner authored
llvm-svn: 95180
-
Chris Lattner authored
the streamer. Demo: $ cat t.ll define i32 @test() nounwind { ret i32 42 } $ llc t.ll -o - ... _test: movl $42, %eax ret $ llc t.ll -o t.o -filetype=obj $ otool -tv t.o t.o: (__TEXT,__text) section _test: 00000000 movl $0x0000002a,%eax 00000005 ret llvm-svn: 95179
-
Chris Lattner authored
the end of the instruction instead of expecting the caller to do it. This currently causes the asm-verbose instruction comments to be on the next line. llvm-svn: 95178
-
Chris Lattner authored
than DEBUG_VALUE :( ) into the target indep AsmPrinter.cpp file. This allows elimination of the NO_ASM_WRITER_BOILERPLATE hack among other things. llvm-svn: 95177
-
Dale Johannesen authored
to have some problems anyway. llvm-svn: 95171
-
Bob Wilson authored
llvm-svn: 95170
-
Chris Lattner authored
llvm-svn: 95168
-
Chris Lattner authored
stderr if in filetype=obj mode. This is a hack, and will live until dwarf emission and other random stuff that is not yet going through MCStreamer is upgraded. It only impacts filetype=obj mode. llvm-svn: 95166
-
Eric Christopher authored
llvm-svn: 95165
-
Evan Cheng authored
ByVal frame object size should be that of the byval argument, not the size of the type which is just a pointer. This is not known to break stuff but is wrong nevertheless. llvm-svn: 95163
-
Chris Lattner authored
$ cat t.ll @g = global i32 42 $ llc t.ll -o t.o -filetype=obj $ nm t.o 00000000 D _g There is still a ton of work left. Instructions are not being encoded yet apparently. llvm-svn: 95162
-
Jim Grosbach authored
even when -disable-fp-elim is specified. llvm-svn: 95161
-
Evan Cheng authored
llvm-svn: 95160
-
Dale Johannesen authored
llvm-svn: 95159
-
Daniel Dunbar authored
some mechanism for specifying alternative syntaxes, but I'm not sure what form that should take yet. llvm-svn: 95158
-
Chris Lattner authored
llvm-svn: 95156
-
Chris Lattner authored
mccontext instead of having AsmPrinter do it. This allows other types of MCStreamer's to be passed in. llvm-svn: 95155
-
Eric Christopher authored
llvm-svn: 95154
-
- Feb 02, 2010
-
-
Chris Lattner authored
llvm-svn: 95153
-
Chris Lattner authored
move handling of asm-verbose out of AsmPrinter.cpp into LLVMTargetMachine.cpp with the rest of the command line options. llvm-svn: 95152
-
Chris Lattner authored
llvm-svn: 95150
-
Chris Lattner authored
Now the only use of the ELF writer is the JIT, which won't be easy to fix in the short term. :( :( llvm-svn: 95148
-