- Apr 03, 2014
-
-
Tim Northover authored
The previous situation where ATOMIC_LOAD_WHATEVER nodes were expanded at MachineInstr emission time had grown to be extremely large and involved, to account for the subtly different code needed for the various flavours (8/16/32/64 bit, cmpxchg/add/minmax). Moving this transformation into the IR clears up the code substantially, and makes future optimisations much easier: 1. an atomicrmw followed by using the *new* value can be more efficient. As an IR pass, simple CSE could handle this efficiently. 2. Making use of cmpxchg success/failure orderings only has to be done in one (simpler) place. 3. The common "cmpxchg; did we store?" idiom can be exposed to optimisation. I intend to gradually improve this situation within the ARM backend and make sure there are no hidden issues before moving the code out into CodeGen to be shared with (at least ARM64/AArch64, though I think PPC & Mips could benefit too). llvm-svn: 205525
-
Stepan Dyatkovskiy authored
The trouble as in ARMAsmParser, in ParseInstruction method. It assumes that ARM::R12 + 1 == ARM::SP. It is wrong, since ARM::<Register> codes are generated by tablegen and actually could be any random numbers. llvm-svn: 205524
-
Silviu Baranga authored
add operation since extract_vector_elt can perform an extend operation. Get the input lane type from the vector on which we're performing the vpaddl operation on and extend or truncate it to the output type of the original add node. llvm-svn: 205523
-
Sasa Stankovic authored
%highest(sym1 - sym2 + const) relocations. Remove "ABS_" from VK_Mips_HI and VK_Mips_LO enums in MipsMCExpr, to be consistent with VK_Mips_HIGHER and VK_Mips_HIGHEST. This change also deletes test file test/MC/Mips/higher_highest.ll and moves its CHECK's to the new test file test/MC/Mips/higher-highest-addressing.s. The deleted file tests that R_MIPS_HIGHER and R_MIPS_HIGHEST relocations are emitted in the .o file. Since it uses -force-mips-long-branch option, it was created when MipsLongBranch's implementation was emitting R_MIPS_HIGHER and R_MIPS_HIGHEST relocations in the .o file. It was disabled when MipsLongBranch started to directly calculate offsets. Differential Revision: http://llvm-reviews.chandlerc.com/D3230 llvm-svn: 205522
-
Stephen Canon authored
llvm-svn: 205521
-
Tim Northover authored
llvm-svn: 205520
-
Tim Northover authored
Switching between i32 and i64 based on the LHS type is a good idea in theory, but pre-legalisation uses i64 regardless of our choice, leading to potential ISel errors. Should fix PR19294. llvm-svn: 205519
-
Tim Northover authored
It's identical to name() these days. (At one point it avoided masking of the RTTI uniqueness bit because ARM64 ignored it architecturally, but no longer). llvm-svn: 205518
-
Daniel Jasper authored
Before: MACRO(auto * a); After: MACRO(auto *a); llvm-svn: 205517
-
Oliver Stannard authored
We cannot use STACK_LIMIT, as it is not reserved for the compiler by the C spec. llvm-svn: 205516
-
Andrew Trick authored
llvm-svn: 205515
-
Tim Northover authored
This should fix PR19314. llvm-svn: 205514
-
Andrew Trick authored
llvm-svn: 205513
-
David Blaikie authored
While we were encoding 64 bit values (data8) in the subrange itself, using a 32 bit type for the subrange was still confusing the gdb. Oh, and make it unsigned too. As the comment points out, this could be pushed into the frontend so that it would be 32 or 64 bit as appropriate, etc. llvm-svn: 205512
-
Lang Hames authored
I should have read that comment a little more carefully. ;) Regression test in the works, committing in the mean time to un-break people. llvm-svn: 205511
-
Rui Ueyama authored
llvm-svn: 205510
-
Rafael Espindola authored
These should probably be error conditions. llvm-svn: 205509
-
Rafael Espindola authored
This has the following advantages: * Less code. * The old ELF implementation was wrong for non-relocatable objects. * The old ELF implementation (and I think MachO) was wrong for thumb. No current testcase since this is only used from MCJIT and it only uses relocatable objects and I don't think it supports thumb yet. llvm-svn: 205508
-
Marshall Clow authored
llvm-svn: 205507
-
Alexey Bataev authored
llvm-svn: 205506
-
Marshall Clow authored
llvm-svn: 205505
-
Marshall Clow authored
llvm-svn: 205504
-
Rafael Espindola authored
All existing users explicitly ask for an address or a file offset. llvm-svn: 205503
-
Rafael Espindola authored
This should bring the arm buildbots back. llvm-svn: 205502
-
Rui Ueyama authored
An ordinal is set to each child of Input Graph, but no one actually uses it. The only piece of code that gets ordinaly values is sortInputElements in InputGraph.cpp, but it does not actually do anything -- we assign ordinals in increasing order just before calling sort, so when sort is called it's already sorted. It's no-op. We can simply remove it. No functionality change. Differential Revision: http://llvm-reviews.chandlerc.com/D3270 llvm-svn: 205501
-
Rafael Espindola authored
llvm-svn: 205500
-
Rafael Espindola authored
In particular, we only need to fetch the section if this is a relocatable object. No functionality change. llvm-svn: 205499
-
Juergen Ributzka authored
This code is no longer usefull, because we only compute and use the IDom once. There is no benefit in caching it anymore. llvm-svn: 205498
-
Jim Ingham authored
llvm-svn: 205497
-
Jim Ingham authored
llvm-svn: 205496
-
Hal Finkel authored
When a vector type legalizes to a larger vector type, and the target does not support the associated extending load (or truncating store), then legalization will scalarize the load (or store) resulting in an associated scalarization cost. BasicTTI::getMemoryOpCost needs to account for this. Between this, and r205487, PowerPC on the P7 with VSX enabled shows: MultiSource/Benchmarks/PAQ8p/paq8p: 43% speedup SingleSource/Benchmarks/BenchmarkGame/puzzle: 51% speedup SingleSource/UnitTests/Vectorizer/gcc-loops 28% speedup (some of these are new; some of these, such as PAQ8p, just reverse regressions that VSX support would trigger) llvm-svn: 205495
-
Jim Ingham authored
I removed SetCallback from the Python API's since it wasn't actually useful, and added SetScriptCallbackFunction, and SetScriptCallbackBody. So add these to the default constructor test case. llvm-svn: 205494
-
Rafael Espindola authored
This reverts commit r205479. It turns out that nm does use addresses, it is just that every reasonable relocatable ELF object has sections with address 0. I have no idea if those exist in reality, but it at least it shows that llvm-nm should use the name address. The added test was includes an unusual .o file with non 0 section addresses. I created it by hacking ELFObjectWriter.cpp. Really sorry for the churn. llvm-svn: 205493
-
Richard Trieu authored
llvm-svn: 205492
-
Ben Langmuir authored
Which we do in removeModules(). llvm-svn: 205491
-
Rui Ueyama authored
llvm-svn: 205490
-
Lang Hames authored
TargetInstrInfo::findCommutedOpIndices to enable VFMA*231 commutation, rather than abusing commuteInstruction. Thanks very much for the suggestion guys! llvm-svn: 205489
-
Jason Molenda authored
llvm-svn: 205488
-
Hal Finkel authored
For an cast (extension, etc.), the currently logic predicts a low cost if the associated operation (keyed on the destination type) is legal (or promoted). This is not true when the number of values required to legalize the type is changing. For example, <8 x i16> being sign extended by <8 x i32> is not generically cheap on PPC with VSX, even though sign extension to v4i32 is legal, because two output v4i32 values are required compared to the single v8i16 input value, and without custom logic in the target, this conversion will scalarize. llvm-svn: 205487
-
Rui Ueyama authored
llvm-svn: 205486
-