Bob Wilson
fcde5a3ac5
Do not include multiple -arch options in CPPFLAGS.
...
llvm-svn: 154070
2012-04-05 00:35:55 +00:00
Michael J. Spencer
15541ee757
Fix -Wnon-virtual-dtor warnings.
...
llvm-svn: 154063
2012-04-04 22:34:55 +00:00
Akira Hatanaka
e5ea70212f
Reapply 154038 without the failing test.
...
llvm-svn: 154062
2012-04-04 22:16:36 +00:00
Owen Anderson
f6f930a990
Revert r154038. It was causing make check failures.
...
llvm-svn: 154054
2012-04-04 21:18:58 +00:00
Pete Cooper
4f727ef169
REG_SEQUENCE expansion to COPY instructions wasn't taking account of sub register indices on the source registers. No simple test case
...
llvm-svn: 154051
2012-04-04 21:03:25 +00:00
Benjamin Kramer
270e886395
Fix a C++11 UDL conflict.
...
Still not fixed in the standard ;)
llvm-svn: 154044
2012-04-04 20:33:56 +00:00
Pete Cooper
8d002ed0bb
f16 FREM can now be legalized by promoting to f32
...
llvm-svn: 154039
2012-04-04 19:36:31 +00:00
Akira Hatanaka
4df2267566
Fix LowerGlobalAddress to produce instructions with the correct relocation
...
types for N32 ABI. Add new test case and update existing ones.
llvm-svn: 154038
2012-04-04 19:02:38 +00:00
Akira Hatanaka
f9e02ac6e1
Fix LowerJumpTable to produce instructions with the correct relocation
...
types for N32 ABI. Test case will be updated after the patch that fixes
TargetLowering::getPICJumpTableRelocBase is checked in.
llvm-svn: 154036
2012-04-04 18:31:32 +00:00
Akira Hatanaka
c8028e2551
Fix LowerConstantPool to produce instructions with the correct relocation
...
types for N32 ABI and update test case.
llvm-svn: 154034
2012-04-04 18:26:12 +00:00
Jakob Stoklund Olesen
0419ed395c
Implement ARMBaseInstrInfo::commuteInstruction() for MOVCCr.
...
A MOVCCr instruction can be commuted by inverting the condition. This
can help reduce register pressure and remove unnecessary copies in some
cases.
<rdar://problem/11182914>
llvm-svn: 154033
2012-04-04 18:23:42 +00:00
Jakob Stoklund Olesen
f0c39f0a1e
Remove spurious debug output.
...
llvm-svn: 154032
2012-04-04 18:23:38 +00:00
Akira Hatanaka
913d78a99c
Fix LowerBlockAddress to produce instructions with the correct relocation
...
types for N32 ABI and update test case.
llvm-svn: 154031
2012-04-04 18:22:53 +00:00
Hongbin Zheng
2a8f0cf400
Add testcase for r154007, when a function has the optsize attribute,
...
the loop should be unrolled according the value of OptSizeUnrollThreshold.
llvm-svn: 154014
2012-04-04 13:24:40 +00:00
Rafael Espindola
88a1aeb123
Always compute all the bits in ComputeMaskedBits.
...
This allows us to keep passing reduced masks to SimplifyDemandedBits, but
know about all the bits if SimplifyDemandedBits fails. This allows instcombine
to simplify cases like the one in the included testcase.
llvm-svn: 154011
2012-04-04 12:51:34 +00:00
Hongbin Zheng
c50b4781ab
LoopUnrollPass: Use variable "Threshold" instead of "CurrentThreshold" when
...
reducing unroll count, otherwise the reduced unroll count is not taking
the "OptimizeForSize" attribute into account.
llvm-svn: 154007
2012-04-04 11:44:08 +00:00
Benjamin Kramer
a323a34d00
Move yaml::Stream's dtor out of line so it can see Scanner's dtor.
...
llvm-svn: 154004
2012-04-04 08:53:34 +00:00
Benjamin Kramer
3532e8b899
Implement DwarfLLVMRegPair::operator< without violating asymmetry.
...
MSVC8 verifies this.
llvm-svn: 154002
2012-04-04 08:24:08 +00:00
Craig Topper
2a4fe8b344
Convert assert(false) followed by a return to llvm_unreachable
...
llvm-svn: 153997
2012-04-04 04:55:46 +00:00
Craig Topper
98fc96208f
Remove default case from switch that was already covering all cases.
...
llvm-svn: 153996
2012-04-04 04:42:42 +00:00
Pete Cooper
702973d27c
Removed useless switch for default case when switch was covering all the enum values
...
llvm-svn: 153984
2012-04-04 00:53:04 +00:00
Bob Wilson
ba2b9f1272
Fix the install location for the Embedded makefile target.
...
svn r145378 inadvertently changed the destination for the Embedded target
in the makefile. Add a "/Developer" suffix to DSTROOT to compensate.
llvm-svn: 153980
2012-04-03 23:44:39 +00:00
Michael J. Spencer
84f354e368
Sorry about that. MSVC seems to accept just about any random string you give it ;/
...
llvm-svn: 153979
2012-04-03 23:36:44 +00:00
Bob Wilson
3e0c867151
Remove dead code for installing libLTO when building llvmCore.
...
llvm-svn: 153978
2012-04-03 23:13:26 +00:00
Michael J. Spencer
2f9beb2374
Add YAML parser to Support.
...
llvm-svn: 153977
2012-04-03 23:09:22 +00:00
Pete Cooper
4164f86b8a
Add VSELECT to LegalizeVectorTypes::ScalariseVectorResult. Previously it would crash if it encountered a 1 element VSELECT. Solution is slightly more complicated than just creating a SELET as we have to mask or sign extend the vector condition if it had different boolean contents from the scalar condition. Fixes <rdar://problem/11178095>
...
llvm-svn: 153976
2012-04-03 22:57:55 +00:00
Pete Cooper
983fc686b4
Removed one last bad continue statement meant to be removed in r153914.
...
llvm-svn: 153975
2012-04-03 22:18:49 +00:00
Bob Wilson
f68ed1883e
When building llvmCore, pass the SDKROOT and -arch setting to configure.
...
So far all of configure tests have been run against the default SDK and
architecture, regardless of what is actually being built. We've gotten
lucky until now. <rdar://problem/11112479>
llvm-svn: 153972
2012-04-03 21:50:26 +00:00
Bob Wilson
1944a74c98
Remove a reference to the C backend.
...
llvm-svn: 153971
2012-04-03 21:50:24 +00:00
Chad Rosier
e7870c71eb
Fix an issue in SimplifySetCC() specific to vector comparisons.
...
When folding X == X we need to check getBooleanContents() to determine if the
result is a vector of ones or a vector of negative ones.
I tried creating a test case, but the problem seems to only be exposed on a
much older version of clang (around r144500).
rdar://10923049
llvm-svn: 153966
2012-04-03 20:11:24 +00:00
Anton Korobeynikov
64a47d779a
Set soname for FreeBSD as well.
...
Patch by Bernard Cafarelli!
llvm-svn: 153965
2012-04-03 19:48:31 +00:00
Eric Christopher
53ef0cf4a5
Fix thinko check for number of operands to be the one that actually
...
might have more than 19 operands. Add a testcase to make sure I
never screw that up again.
Part of rdar://11026482
llvm-svn: 153961
2012-04-03 17:55:42 +00:00
Lang Hames
4c05101031
Matrix simplification in PBQP may push infinite costs onto register options.
...
The colorability heuristic should count these as denied registers.
No test case - this exposed a bug on an out-of-tree target.
llvm-svn: 153958
2012-04-03 16:27:16 +00:00
Dylan Noblesmith
8ab4926be7
ARMDisassembler: drop bogus dependency on ARMCodeGen
...
And indirectly, a dependency on most of the core LLVM optimization
libraries.
llvm-svn: 153957
2012-04-03 15:48:14 +00:00
Dylan Noblesmith
2431e625b9
Object: drop bogus VMCore dependency
...
llvm-svn: 153956
2012-04-03 15:48:10 +00:00
Bill Wendling
e3c2c36927
The speedup doesn't appear to have been from this, but was an anomaly of my testing machine.
...
llvm-svn: 153951
2012-04-03 11:19:21 +00:00
Bill Wendling
3f12fbd290
Reserve space for the eventual filling of the vector. This gives a small speedup.
...
llvm-svn: 153949
2012-04-03 10:50:09 +00:00
Nadav Rotem
d72bf636aa
Add an additional testcase which checks ops with multiple users.
...
llvm-svn: 153939
2012-04-03 07:39:36 +00:00
Anton Korobeynikov
e70c37c738
Make PPCCompilationCallbackC function to be static, so there will be no need to issue call via
...
PLT when LLVM is built as shared library. This mimics the X86 backend towards the approach.
llvm-svn: 153938
2012-04-03 06:59:28 +00:00
Craig Topper
b4929c0302
Tidy up spacing in some tablegen outputs.
...
llvm-svn: 153937
2012-04-03 06:52:47 +00:00
Craig Topper
ce6c05e0df
Add support for AVX enhanced comparison predicates. Patch from Kay Tiong Khoo.
...
llvm-svn: 153935
2012-04-03 05:20:24 +00:00
Bill Wendling
f6c626e3a9
Reformatting. No functionality change.
...
llvm-svn: 153928
2012-04-03 03:56:52 +00:00
Bill Wendling
7680143edf
As Eric pointed out, even a Debug build should be equal. Leave the flag that can turn off comparisons though.
...
llvm-svn: 153927
2012-04-03 03:27:43 +00:00
Akira Hatanaka
c5bbe0b434
Revert r153924. Delete test/MC/Disassembler/Mips and lib/Target/Mips/Disassembler.
...
llvm-svn: 153926
2012-04-03 03:01:13 +00:00
Akira Hatanaka
cecb440c11
Revert r153924. There were buildbot failures.
...
llvm-svn: 153925
2012-04-03 02:51:09 +00:00
Akira Hatanaka
058b0cfb55
MIPS disassembler support.
...
Patch by Vladimir Medic.
llvm-svn: 153924
2012-04-03 02:20:58 +00:00
Andrew Trick
a1e25f74dd
Cleanup set_union usage. The same thing but a bit cleaner now.
...
llvm-svn: 153922
2012-04-03 01:35:52 +00:00
Andrew Trick
a92546a4bb
Use std::set_union instead of nasty custom code.
...
I just noticed Jakob's examples of the proper application of
std::set... routines.
llvm-svn: 153918
2012-04-03 00:47:23 +00:00
Eric Christopher
ba40985484
Add a line number for the scope of the function (starting at the first
...
brace) so that we get more accurate line number information about the
declaration of a given function and the line where the function
first starts.
Part of rdar://11026482
llvm-svn: 153916
2012-04-03 00:43:49 +00:00
Pete Cooper
fb86d3b6bc
Fixes to r153903. Added missing explanation of behaviour when the VirtRegMap is NULL. Also changed it in this case to just avoid updating the map, but live ranges or intervals will still get updated and created
...
llvm-svn: 153914
2012-04-03 00:28:46 +00:00