- May 01, 2015
-
-
Justin Bogner authored
We were assigning the counter for the body of the loop to the loop variable initialization for some reason here, but our tests completely lacked coverage for range-for loops. This fixes that and makes the logic generally more similar to the logic for a regular for. llvm-svn: 236277
-
Reid Kleckner authored
llvm-svn: 236276
-
Rafael Espindola authored
llvm-svn: 236275
-
Reid Kleckner authored
llvm-svn: 236274
-
Quentin Colombet authored
rdar://problem/20748715 llvm-svn: 236273
-
Pete Cooper authored
The expansion for t2ABS was always setting the kill flag on the rsb instruction. It should instead only be set on rsb if it was set on the original ABS instruction. rdar://problem/20752113 llvm-svn: 236272
-
Reid Kleckner authored
llvm-svn: 236271
-
Reid Kleckner authored
This helps reduce the frequency of stack realignment prologues in 32-bit X86 Windows code. Before this change and the corresponding clang change, we would take the max of the type preferred alignment and the explicit alignment on the alloca. If you don't override aggregate alignment in datalayout, you get a default of 8. This dates back to 2007 / r34356, and changing it seems prohibitively difficult at this point. llvm-svn: 236270
-
Matthias Braun authored
When optimizing demanded bits of the operands of an Add we have to remove the nsw/nuw flags as we have no guarantee anymore that we don't wrap. This is legal here because the top bit is not demanded. In fact this operaion was already performed but missed in the case of an Add with a constant on the right side. To fix this this patch refactors the code to unify the code paths in SimplifyDemandedUseBits() handling of Add/Sub: - The transformation of Add->Or is removed from the simplify demand code because the equivalent transformation exists in InstCombiner::visitAdd() - KnownOnes/KnownZero are not adjusted for Add x, C anymore as computeKnownBits() already performs these computations. - The simplification of the operands is unified. In this new version constant on the right side of a Sub are shrunk now as I could not find a reason why not to do so. - The special case for clearing nsw/nuw in ShrinkDemandedConstant() is not necessary anymore as the caller does that already. Differential Revision: http://reviews.llvm.org/D9415 llvm-svn: 236269
-
Matthias Braun authored
The rule that turns a sub to xor if the LHS is 2^n-1 and the remaining bits are known zero, does not use the demanded bits at all: Move it to the normal InstCombine code path. Differential Revision: http://reviews.llvm.org/D9417 llvm-svn: 236268
-
Rafael Espindola authored
This is actually fairly simple in the current code layout: Check if we should compress just before writing out and everything else just works. This removes the last case in which the object writer was creating a fragment. llvm-svn: 236267
-
Sean Callanan authored
global convenience expression prefix. Also ensured that if macros are defined by the modules we don't try to redefine them. Finally cleaned up a bit of code while I was in there. <rdar://problem/20756642> llvm-svn: 236266
-
Richard Trieu authored
llvm-svn: 236265
-
Justin Bogner authored
llvm-svn: 236264
-
Andrea Di Biagio authored
llvm-svn: 236262
-
Rafael Espindola authored
llvm-svn: 236261
-
Rafael Espindola authored
llvm-svn: 236260
-
Zachary Turner authored
Based on list discussions, a different approach is desired for reducing the visual impact of logging statements on the readability of the code. Another mechanism will be added in a followup patch, but for now, since NullLog is unreferenced, this patch just removes it. This patch does *not* remove the other half of r236174, which was to delete some dead code surrounding logging flags. llvm-svn: 236259
-
Andrea Di Biagio authored
Fix for PR23103. Correctly propagate the 'IsUndef' flag to the register operands of a commuted instruction. Revision 220239 exposed a latent bug in method 'TargetInstrInfo::commuteInstruction'. When commuting the operands of a machine instruction, method 'commuteInstruction' didn't correctly propagate the 'IsUndef' flag to the register operands of the new (commuted) instruction. Before this patch, the following instruction: %vreg4<def> = VADDSDrr %vreg14, %vreg5<undef>; FR64:%vreg4,%vreg14,%vreg5 was wrongly converted by method 'commuteInstruction' into: %vreg4<def> = VADDSDrr %vreg5, %vreg14<undef>; FR64:%vreg4,%vreg5,%vreg14 The correct instruction should have been: %vreg4<def> = VADDSDrr %vreg5<undef>, %vreg14; FR64:%vreg4,%vreg5,%vreg14 This patch fixes the problem in method 'TargetInstrInfo::commuteInstruction'. When swapping the operands of a machine instruction, we now make sure that 'IsUndef' flags are correctly set. Added test case 'pr23103.ll'. Differential Revision: http://reviews.llvm.org/D9406 llvm-svn: 236258
-
Rafael Espindola authored
Add string to the section header string table as we add sections. llvm-svn: 236257
-
Richard Smith authored
No functionality change; no-one inspects this field yet, and probably no-one will ever inspect it in the "invalid" state, but ubsan could be unhappy about this if such a DefInfo is copied. llvm-svn: 236256
-
Rafael Espindola authored
This avoids passing it around and lets us build a small helper to add a section to the table. llvm-svn: 236255
-
Richard Smith authored
The bug was fixed by r235921. llvm-svn: 236254
-
Rafael Espindola authored
llvm-svn: 236253
-
Kevin Enderby authored
option to print the archive headers using raw numeric values. Also add the -archive-member-offsets for use with these to also trigger printing of the offset of the archive member from the start of the archive. llvm-svn: 236252
-
Douglas Katzman authored
Iteration over all permutations didn't really work, due to evolution of the underlying enums. Differential Revision: http://reviews.llvm.org/D9057 llvm-svn: 236251
-
Matt Arsenault authored
llvm-svn: 236250
-
Matt Arsenault authored
If you somehow added a MachineOperand to an instruction that did not have the parent set, the verifier would crash since it attempts to use the operand's parent. llvm-svn: 236249
-
Pete Cooper authored
In the test case here, the 'unreachable' BB was removed by BranchFolding because its empty. It then rewrote the jump from 'entry' to jump to its fallthrough, which was a landing pad. This results in 'entry' jumping to 2 different landing pads, which fails the machine verifier. rdar://problem/20750162 llvm-svn: 236248
-
Quentin Colombet authored
temporary. Because of that: 1. The machine verifier was complaining on such code. 2. The generate code worked just because the thumb reduction size pass fixed the opcode. rdar://problem/20749824 llvm-svn: 236247
-
Ben Langmuir authored
And thereby stop asserting. In ObjC++ modes, we tentatively parse the lambda introducer twice: once to disambiguate designators, which we also do in C++, and a second time to disambiguate objc message expressions. During the second tentative parse, the last cached token will be the annotation token we built in the first parse. So use getLastLoc() to get the correct end location for the rebuilt annotation. llvm-svn: 236246
-
Tim Northover authored
Unlike 32-bit ARM, AArch64 can use wzr/xzr to implement this without the need for a separate instruction. rdar://18679590 llvm-svn: 236245
-
Reid Kleckner authored
Use them in WinEHPrepare so that we can spot any toolchain bugs that come up. llvm-svn: 236244
-
David Majnemer authored
llvm-svn: 236243
-
Jordan Rose authored
This probably won't come up much, but it seems tidier. Related to rdar://problem/20713550 llvm-svn: 236242
-
Jordan Rose authored
That way we can take any trailing availability attributes into account. rdar://problem/20713550 llvm-svn: 236241
-
Jan Vesely authored
changes: Don't apply on hexagon and NVPTX since they no longer claim to support UADDO/USUBO Add location to getConstant Drop comment about the ops being turned into expand llvm-svn: 236240
-
David Majnemer authored
There can be multiple virtual bases which are on the path to a vfptr when one vbase virtually inherits from another. We should prefer the most derived virtual base which covariantly overrides a method in the vfptr class; if we do not lengthen the path this way, we will end up with too few vftable entries. This fixes PR21073. llvm-svn: 236239
-
David Majnemer authored
llvm-svn: 236238
-
Daniel Berlin authored
Move equality function for AliasAnalysis::Location from DenseMapInfo to Location struct so it can be used in other types of maps llvm-svn: 236237
-