- Sep 27, 2014
-
-
Matt Arsenault authored
No test since the current SIISelLowering::legalizeOperands effectively hides this, and the general uses seem to only fire on SALU instructions which don't have modifiers between the operands. When trying to use legalizeOperands immediately after instruction selection, it now sees a lot more patterns it did not see before which break on this. llvm-svn: 218527
-
Matt Arsenault authored
No tests hit this, and I don't see any way a GlobalAddress node would survive beyond lowering on SI. It it would, the move should probably be inserted by selection. llvm-svn: 218526
-
David Peixotto authored
The annotation instructions are dropped during codegen and have no impact on size. In some cases, the annotations were preventing the unroller from unrolling a loop because the annotation calls were pushing the cost over the unrolling threshold. Differential Revision: http://reviews.llvm.org/D5335 llvm-svn: 218525
-
Chandler Carruth authored
sadly. llvm-svn: 218524
-
Chandler Carruth authored
layer of tie-breaking sorting, it really helps to check that you're in a tie first. =] Otherwise the whole thing cycles infinitely. Test case added, another one found through fuzz testing. llvm-svn: 218523
-
Chandler Carruth authored
AVX support. New test cases included. Note that none of the existing test cases covered these buggy code paths. =/ Also, it is clear from this that SHUFPS and SHUFPD are the most bug prone shuffle instructions in x86. =[ These were all detected by fuzz-testing. (I <3 fuzz testing.) llvm-svn: 218522
-
Renato Golin authored
This patch makes the ARM backend transform 3 operand instructions such as 'adds/subs' to the 2 operand version of the same instruction if the first two register operands are the same. Example: 'adds r0, r0, #1' will is transformed to 'adds r0, #1'. Currently for some instructions such as 'adds' if you try to assemble 'adds r0, r0, #8' for thumb v6m the assembler would throw an error message because the immediate cannot be encoded using 3 bits. The backend should be smart enough to transform the instruction to 'adds r0, #8', which allows for larger immediate constants. Patch by Ranjeet Singh. llvm-svn: 218521
-
- Sep 26, 2014
-
-
Ben Langmuir authored
If a base class declares a destructor, we will add the implicit destructor for the subclass in ActOnFields -> AddImplicitlyDeclaredMembersToClass But in Objective C++, we did not compute whether we have a trivial destructor until after that in CXXRecordDecl::completeDefinition() This was leading to a mismatch between the class, which thought it had no trivial destructor, and the CXXDestructorDecl, which considered itself trivial. It turns out the reason we delayed setting this until completeDefinition() was for a warning that has since been removed as part of -Warc-abi, so we just do it eagerly now. llvm-svn: 218520
-
Petar Jovanovic authored
Changed files: config-ix.cmake: Enabled UBSan for MIPS32 sanitizer_stacktrace.cc: Program counter for MIPS32 is four byte aligned and a delay slot so subtracted PC by 8 for getting call site address. cast-overflow.cpp: Added big endian support for this test case. Patch by Sagar Thakur. Differential Revision: http://reviews.llvm.org/D4881 llvm-svn: 218519
-
Todd Fiala authored
gtest: modified Xcode integration so gtest assert/expect failure now shows error content in the error marker at the line of failure. This change modifies the python test runner to combine lines starting with a failure report including up to 3 more lines, terminated by the next "[ FAILED ]" line. These are all emitted on the same line as the file:line indication, which allows Xcode's failure marker code to pick it up and display it along with the error badge in the Xcode editor window. Makes for a nice gtest development experience. llvm-svn: 218518
-
Andrea Di Biagio authored
The SSE rsqrt instruction (a fast reciprocal square root estimate) was grouped in the same scheduling IIC_SSE_SQRT* class as the accurate (but very slow) SSE sqrt instruction. For code which uses rsqrt (possibly with newton-raphson iterations) this poor scheduling was affecting performances. This patch splits off the rsqrt instruction from the sqrt instruction scheduling classes and creates new IIC_SSE_RSQER* classes with latency values based on Agner's table. Differential Revision: http://reviews.llvm.org/D5370 Patch by Simon Pilgrim. llvm-svn: 218517
-
Alexander Kornienko authored
llvm-svn: 218516
-
Alexander Kornienko authored
Summary: This patch depends on D5501. Check user name substitution more specifically by specifying it via the new -config= option. This also lets clang-tidy tests specify clang-tidy options before the '--' when using check_clang_tidy_fix.sh. Reviewers: klimek Reviewed By: klimek Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D5502 llvm-svn: 218515
-
Frederic Riss authored
This reverts commit r218513. Buildbots using libstdc++ issue an error when trying to copy SmallVector<std::unique_ptr<>>. Revert the commit until we have a fix. llvm-svn: 218514
-
Frederic Riss authored
Summary: There will be multiple TypeUnits in an unlinked object that will be extracted from different sections. Now that we have DWARFUnitSection that is supposed to represent an input section, we need a DWARFUnitSection<TypeUnit> per input .debug_types section. Once this is done, the interface is homogenous and we can move the Section parsing code into DWARFUnitSection. Reviewers: samsonov, dblaikie Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5482 llvm-svn: 218513
-
Alexander Kornienko authored
llvm-svn: 218512
-
Alexander Kornienko authored
Summary: Add -config option to allow specifying configuration in YAML/JSON format on the command line. Reviewers: klimek Reviewed By: klimek Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D5501 llvm-svn: 218511
-
Daniel Sanders authored
llvm-svn: 218510
-
Daniel Sanders authored
Summary: This will allow us to handle f128 arguments without duplicating code from CCState::AnalyzeFormalArguments() or CCState::AnalyzeCallOperands(). No functional change. Reviewers: vmedic Reviewed By: vmedic Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5292 llvm-svn: 218509
-
Robert Khasanov authored
Added lowering tests for these instructions. llvm-svn: 218508
-
NAKAMURA Takumi authored
llvm-svn: 218507
-
David Majnemer authored
No functional change intended. llvm-svn: 218506
-
David Majnemer authored
llvm-svn: 218505
-
Jyoti Allur authored
llvm-svn: 218504
-
Alexander Musman authored
(clang crashed in CodeGen in llvm::Module::getNamedValue on thread_local std::unique_ptr<int>). Differential Revision: http://reviews.llvm.org/D5353 llvm-svn: 218503
-
David Majnemer authored
llvm-svn: 218502
-
Kuba Brecka authored
llvm-svn: 218501
-
Hal Finkel authored
In addition to __builtin_assume_aligned, GCC also supports an assume_aligned attribute which specifies the alignment (and optional offset) of a function's return value. Here we implement support for the assume_aligned attribute by making use of the @llvm.assume intrinsic. llvm-svn: 218500
-
David Majnemer authored
llvm-svn: 218499
-
David Majnemer authored
llvm-svn: 218498
-
David Majnemer authored
No functional change intended. llvm-svn: 218497
-
David Majnemer authored
Don't negate signed integer types in &raw_ostream::operator<<(const FormattedNumber &FN). llvm-svn: 218496
-
David Xu authored
llvm-svn: 218495
-
David Xu authored
llvm-svn: 218494
-
David Xu authored
llvm-svn: 218493
-
Eric Christopher authored
based on the Function. This is currently used to implement mips16 support in the mips backend via the existing module pass resetting the subtarget. Things to note: a) This involved running resetTargetOptions before creating a new subtarget so that code generation options like soft-float could be recognized when creating the new subtarget. This is to deal with initialization code in isel lowering that only paid attention to the initial value. b) Many of the existing testcases weren't using the soft-float feature correctly. I've corrected these based on the check values assuming that was the desired behavior. c) The mips port now pays attention to the target-cpu and target-features strings when generating code for a particular function. I've removed these from one function where the requested cpu and features didn't match the check lines in the testcase. llvm-svn: 218492
-
Eric Christopher authored
code generation options from TargetMachine. This will depend upon Function + TargetSubtargetInfo based code generation at which point resetTargetOptions and this code can be removed. llvm-svn: 218491
-
Eric Christopher authored
llvm-svn: 218490
-
Eric Christopher authored
since we are accessing the TargetMachine that we're a member function of. llvm-svn: 218489
-
Jan Vesely authored
AFAICT the semantics of frem match libm's fmod. Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by:
Tom Stellard <tom@stellard.net> llvm-svn: 218488
-