Jim Grosbach
c0a2407cb6
Tidy up. Minor formatting.
...
llvm-svn: 164182
2012-09-18 23:05:18 +00:00
Jim Grosbach
367579067f
Tidy up. 80 columns.
...
llvm-svn: 164181
2012-09-18 23:05:12 +00:00
Andrew Trick
2d7610f325
comment typo
...
llvm-svn: 164180
2012-09-18 22:57:42 +00:00
Chandler Carruth
c3b4338120
Fix the last crasher I've gotten a reproduction for in SROA. This one
...
from the dragonegg build bots when we turned on the full version of the
pass. Included a much reduced test case for this pesky bug, despite
bugpoint's uncooperative behavior.
Also, I audited all the similar code I could find and didn't spot any
other cases where this mistake cropped up.
llvm-svn: 164178
2012-09-18 22:37:19 +00:00
Sean Silva
97a34663de
Test commit
...
llvm-svn: 164174
2012-09-18 22:21:43 +00:00
Michael Ilseman
2555741dad
New utility for expanding integer division for targets that don't support it.
...
Implementation derived from compiler-rt's implementation of signed and unsigned integer division.
llvm-svn: 164173
2012-09-18 22:02:40 +00:00
Evan Cheng
1a3416521f
MOVi16 (movw) is only legal on cpus with V6T2 support. rdar://12300648
...
llvm-svn: 164169
2012-09-18 21:24:16 +00:00
Benjamin Kramer
9958678403
FileCheck: Fix off-by-one bug that made CHECK-NOT: ignore the next character after the colon.
...
llvm-svn: 164165
2012-09-18 20:51:39 +00:00
Roman Divacky
1cc7e2c795
Add test for r164155 and remove two tests superseded by ppc64-calls.ll.
...
llvm-svn: 164162
2012-09-18 19:51:44 +00:00
Jan Sjödin
f6acd91dcf
Add hidden flag to exclude aliases from output.
...
llvm-svn: 164158
2012-09-18 18:47:58 +00:00
Rafael Espindola
528ca88d0c
Add a MapVector class. It provides a regular set iteration, but
...
also provides a insertion order iteration over the values.
llvm-svn: 164157
2012-09-18 18:43:21 +00:00
Roman Divacky
748e9dfd91
Fix the isLocalCall() by checking for linker weakness as well.
...
llvm-svn: 164155
2012-09-18 18:27:49 +00:00
Andrew Trick
7b511c1a80
TargetSchedule: cleanup computeOperandLatency logic & diagnostics.
...
llvm-svn: 164154
2012-09-18 18:20:02 +00:00
Andrew Trick
7d0cab9227
misched: Make ScheduleDAGInstrs use the TargetSchedule interface.
...
llvm-svn: 164153
2012-09-18 18:20:00 +00:00
Akira Hatanaka
a1ab530be9
Revert r164051.
...
llvm-svn: 164150
2012-09-18 18:08:25 +00:00
Andrew Trick
c987eb4cb3
LSR critical edge splitting fix for PR13756.
...
llvm-svn: 164147
2012-09-18 17:51:33 +00:00
Chandler Carruth
213f16cbf4
Fix getCommonType in a different way from the way I fixed it when
...
working on FCA splitting. Instead of refusing to form a common type when
there are uses of a subsection of the alloca as well as a use of the
entire alloca, just skip the subsection uses and continue looking for
a whole-alloca use with a type that we can use.
This produces slightly prettier IR I think, and also fixes the other
failure in the test.
llvm-svn: 164146
2012-09-18 17:49:37 +00:00
Benjamin Kramer
8e14d6349e
Fix build for compilers that don't understand injected class names properly.
...
llvm-svn: 164142
2012-09-18 17:11:47 +00:00
Roman Divacky
bb7740900c
Avoid symbol name clash when filling TOC.
...
Patch by Adhemerval Zanella.
llvm-svn: 164141
2012-09-18 17:10:37 +00:00
Benjamin Kramer
866d11c057
SROA: Use CRTP for OpSplitter to get rid of virtual dispatch and the virtual-dtor warnings that come with it.
...
llvm-svn: 164140
2012-09-18 17:06:32 +00:00
Roman Divacky
377f342a56
On PPC64 emit the environment pointer. Patch by Adhemerval Zanella.
...
llvm-svn: 164139
2012-09-18 16:55:29 +00:00
Roman Divacky
953cd43dfa
Optimize local func calls to not emit nop for TOC restoration.
...
Patch by Adhemerval Zanella.
llvm-svn: 164138
2012-09-18 16:47:58 +00:00
Roman Divacky
1e332ec870
Add PowerPC64 relocation definitions. Patch by Adhemerval Zanella!
...
llvm-svn: 164137
2012-09-18 16:38:02 +00:00
Benjamin Kramer
5d3a4d491b
SROA: Replace the member function template contraption for recursively splitting aggregates into a real class.
...
No intended functionality change.
llvm-svn: 164135
2012-09-18 16:20:46 +00:00
Roman Divacky
30a607bf14
Add test for r164132.
...
llvm-svn: 164134
2012-09-18 16:19:10 +00:00
Roman Divacky
e91b4521bf
When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend
...
store this and use it to not emit long nops when the CPU is geode which
doesnt support them.
Fixes PR11212.
llvm-svn: 164132
2012-09-18 16:08:49 +00:00
NAKAMURA Takumi
e97459a720
SROA.cpp: Appease msvc.
...
...I don't know why this could appease msvc...baad.
llvm-svn: 164130
2012-09-18 15:29:02 +00:00
NAKAMURA Takumi
ac2900c5f9
llvm/test/DebugInfo: Move two tests, 2010-04-13-PubType.ll and linkage-name.ll to X86.
...
llvm-svn: 164129
2012-09-18 14:57:11 +00:00
Benjamin Kramer
789d8fe701
XFAIL SROA test until Chandler can get to it.
...
llvm-svn: 164128
2012-09-18 14:27:53 +00:00
Dmitri Gribenko
ddd1dbb78c
Coding standards: fix typo: '= deleted' -> '= delete'.
...
llvm-svn: 164126
2012-09-18 14:00:58 +00:00
Tom Stellard
7839a3cf23
Make MachinePostDominatorTree::DT private
...
llvm-svn: 164125
2012-09-18 13:49:54 +00:00
Benjamin Kramer
675cba8535
LNT builders have picked up new SROA, disable it to get the remaining builders green again.
...
llvm-svn: 164124
2012-09-18 13:43:00 +00:00
Chandler Carruth
5e6491119e
Fix a warning in release builds and a test case I forgot to update with
...
a fix to getCommonType in the previous patch.
llvm-svn: 164120
2012-09-18 13:02:06 +00:00
Chandler Carruth
1fe8678a5d
Add a major missing piece to the new SROA pass: aggressive splitting of
...
FCAs. This is essential in order to promote allocas that are used in
struct returns by frontends like Clang. The FCA load would block the
rest of the pass from firing, resulting is significant regressions with
the bullet benchmark in the nightly test suite.
Thanks to Duncan for repeated discussions about how best to do this, and
to both him and Benjamin for review.
This appears to have blocked many places where the pass tries to fire,
and so I'm expect somewhat different results with this fix added.
As with the last big patch, I'm including a change to enable the SROA by
default *temporarily*. Ben is going to remove this as soon as the LNT
bots pick up the patch. I'm just trying to get a round of LNT numbers
from the stable machines in the lab.
NOTE: Four clang tests are expected to fail in the brief window where
this is enabled. Sorry for the noise!
llvm-svn: 164119
2012-09-18 12:57:43 +00:00
Richard Osborne
552f578018
Fix instcombine to obey requested alignment when merging allocas.
...
llvm-svn: 164117
2012-09-18 09:31:44 +00:00
James Molloy
4cb3751b3e
More domain conversion; convert VFP VMOVS to NEON instructions in more cases - when we may clobber the other S-lane by converting an S to a D instruction, make an effort to work out if the S lane is clobberable or not.
...
llvm-svn: 164114
2012-09-18 08:31:15 +00:00
Craig Topper
2c492a1861
Make custom operand parsing mnemonic indices use the same mnemonic table as the match table. Reorder fields in OperandMatchEntry to provide the least amount of padding for in tree targets.
...
llvm-svn: 164109
2012-09-18 07:02:21 +00:00
Craig Topper
c4107aa8c2
Use variable type for index into mnemonic table. Shrinks size of index field on in tree targets. Saving static data space.
...
llvm-svn: 164108
2012-09-18 06:10:45 +00:00
Andrew Trick
6cba50cbb4
Replaced ReInitMCSubtargetInfo with InitMCProcessor.
...
Now where we used to call ReInitMCSubtargetInfo, we actually recompute
the same information as InitMCSubtargetInfo instead of only setting
the feature bits.
llvm-svn: 164105
2012-09-18 05:33:15 +00:00
Craig Topper
4662d8cd85
Add LLVM_DELETED_FUNCTION to coding standards.
...
llvm-svn: 164101
2012-09-18 04:43:40 +00:00
Craig Topper
04a52acb1d
Fix a typo. No functional change.
...
llvm-svn: 164100
2012-09-18 04:43:05 +00:00
Andrew Trick
1a1e7664ae
Let NULL slip through again.
...
llvm-svn: 164099
2012-09-18 04:18:39 +00:00
Andrew Trick
e3e6fae309
TargetSchedModel API. Implement latency lookup, disabled.
...
llvm-svn: 164098
2012-09-18 04:03:34 +00:00
Andrew Trick
73e100e6f5
comment typo
...
llvm-svn: 164097
2012-09-18 04:03:30 +00:00
Andrew Trick
418db6184f
TableGen subtarget emitter. Use getSchedClassIdx.
...
llvm-svn: 164096
2012-09-18 03:55:55 +00:00
Andrew Trick
b7b658d440
TableGen subtarget emitter. Generate resolveSchedClass generated hook for resolving instruction variants.
...
llvm-svn: 164095
2012-09-18 03:41:43 +00:00
Andrew Trick
c2ee4420fd
TableGen subtarget emitter. Remove unnecessary header dependence.
...
llvm-svn: 164094
2012-09-18 03:32:57 +00:00
Craig Topper
06c859569e
Mark unimplemented operator new as LLVM_DELETED_FUNCTION.
...
llvm-svn: 164093
2012-09-18 03:25:49 +00:00
Andrew Trick
65c7aae93f
TableGen subtarget emitter. Initialize MCSubtargetInfo with the new machine model.
...
llvm-svn: 164092
2012-09-18 03:18:56 +00:00
Craig Topper
e65078e3c3
Mark constructors, destructors, and operator new commented as 'do not implement' with LLVM_DELETED_FUNCTION instead.
...
llvm-svn: 164091
2012-09-18 02:05:45 +00:00