- Feb 23, 2012
-
-
Jakob Stoklund Olesen authored
Before register allocation, instructions can be moved across calls in order to reduce register pressure. After register allocation, we don't gain a lot by moving callee-saved defs across calls. In fact, since the scheduler doesn't have a good idea how registers are used in the callee, it can't really make good scheduling decisions. This changes the schedule in two ways: 1. Latencies to call uses and defs are no longer accounted for, causing some random shuffling around calls. This isn't really a problem since those uses and defs are inaccurate proxies for what happens inside the callee. They don't represent registers used by the call instruction itself. 2. Instructions are no longer moved across calls. This didn't happen very often, and the scheduling decision was made on dubious information anyway. As with any scheduling change, benchmark numbers shift around a bit, but there is no positive or negative trend from this change. This makes the post-ra scheduler 5% faster for ARM targets. The secret motivation for this patch is the introduction of register mask operands representing call clobbers. The most efficient way of handling regmasks in ScheduleDAGInstrs is to model them as barriers for physreg live ranges, but not for virtreg live ranges. That's fine pre-ra, but post-ra it would have the same effect as this patch. llvm-svn: 151265
-
Douglas Gregor authored
llvm-svn: 151264
-
Douglas Gregor authored
llvm-svn: 151263
-
Benjamin Kramer authored
llvm-svn: 151262
-
Howard Hinnant authored
llvm-svn: 151261
-
Jakob Stoklund Olesen authored
llvm-svn: 151260
-
Douglas Gregor authored
isTrivial() call. llvm-svn: 151259
-
Benjamin Kramer authored
Replace some DenseSets with SmallPtrSets. Apart from the "small" optimization, the current implementation is also a denser. llvm-svn: 151257
-
Howard Hinnant authored
I had originally made the handler function pointers a static internal detail, not accessible to the outside world. I did this because they must be accessed in a thread-safe manner, and the library provides thread-safe getters and setters for these. However I am at least temporarily making them public and giving them the Apple-extension names. In the future these may disappear again, and I think that would probably be a good idea. llvm-svn: 151256
-
Benjamin Kramer authored
Unique CXXBasePath decls with the SmallVector/pod_sort/std::unique idiom instead of employing a wasteful std::set. llvm-svn: 151255
-
Benjamin Kramer authored
llvm-svn: 151254
-
Benjamin Kramer authored
llvm-svn: 151252
-
Duncan Sands authored
llvm-svn: 151251
-
Anton Korobeynikov authored
of instantiated C++ templates. Patch by Kristof Beyls! llvm-svn: 151250
-
Jay Foad authored
llvm-svn: 151249
-
Jay Foad authored
llvm-svn: 151248
-
Jay Foad authored
it with memcpy. This also fixes a problem on big-endian hosts, where addUnaligned would return different results depending on the alignment of the data. llvm-svn: 151247
-
Craig Topper authored
llvm-svn: 151246
-
Richard Smith authored
forget the vptrs. llvm-svn: 151245
-
Duncan Sands authored
used if IsInDevelopmentTree is 'true'. But it doesn't, so help it out. llvm-svn: 151244
-
Duncan Sands authored
llvm-svn: 151243
-
Duncan Sands authored
returns 'true' and emits a warning. Help it out. llvm-svn: 151242
-
Douglas Gregor authored
llvm-svn: 151241
-
Douglas Gregor authored
compiler support for the std::is_trivially_assignable library type trait. llvm-svn: 151240
-
Douglas Gregor authored
llvm-svn: 151239
-
Rafael Espindola authored
llvm-svn: 151238
-
Rafael Espindola authored
* Handle some situations where we should never make a decl more visible, even when merging in an explicit visibility. * Handle attributes in members of classes that are explicitly specialized. Thanks Nico for the report and testing, Eric for the initial review, and dgregor for the awesome test27 :-) llvm-svn: 151236
-
Eric Christopher authored
llvm-svn: 151235
-
Eric Christopher authored
llvm-svn: 151234
-
Andrew Trick authored
Ignore undef uses completely. Use a more explicit SlotIndex API. Add more explicit comments. llvm-svn: 151233
-
Douglas Gregor authored
- Apparently, SVN is yellow - Note that initializer lists are "in progress" llvm-svn: 151232
-
Douglas Gregor authored
llvm-svn: 151231
-
Evan Cheng authored
of x are zero. This optimizes rev + lsr 16 to rev16. rdar://10750814 llvm-svn: 151230
-
Eli Friedman authored
Try to handle qualifiers more consistently for array InitListExprs. Fixes <rdar://problem/10907510>, and makes the ASTs a bit more self-consistent. (I've chosen to keep the qualifiers, but it isn't a strong preference; if anyone prefers removing them, please yell.) llvm-svn: 151229
-
Andrew Trick authored
Added array subscript to SparseSet for convenience. Slight reorg to make it easier to manage the def/use sets. llvm-svn: 151228
-
Richard Smith authored
C++11, and with braced-init-list initializers in conditions. This exposed an ambiguity with enum underlying types versus bitfields, which we resolve by treating 'enum E : T {' as always defining an enumeration (even if it would only successfully parse as a bitfield). This appears to be g++ compatible. llvm-svn: 151227
-
Jakob Stoklund Olesen authored
llvm-svn: 151226
-
Aaron Ballman authored
llvm-svn: 151225
-
Evan Cheng authored
value is zero. Instead of a cmov + op, issue an conditional op instead. e.g. cmp r9, r4 mov r4, #0 moveq r4, #1 orr lr, lr, r4 should be: cmp r9, r4 orreq lr, lr, #1 That is, optimize (or x, (cmov 0, y, cond)) to (or.cond x, y). Similarly extend this to xor as well as (and x, (cmov -1, y, cond)) => (and.cond x, y). It's possible to extend this to ADD and SUB but I don't think they are common. rdar://8659097 llvm-svn: 151224
-
Jakob Stoklund Olesen authored
llvm-svn: 151223
-