- Apr 12, 2014
-
-
Juergen Ributzka authored
Originally the cost model would give up for large constants and just return the maximum cost. This is not what we want for constant hoisting, because some of these constants are large in bitwidth, but are still cheap to materialize. This commit fixes the cost model to either return TCC_Free if the cost cannot be determined, or accurately calculate the cost even for large constants (bitwidth > 128). This fixes <rdar://problem/16591573>. llvm-svn: 206100
-
Yunzhong Gao authored
llvm-svn: 206099
-
David Blaikie authored
Nice to be able to just print out the Tag and have the debugger print dwarf::DW_TAG_subprogram or whatever, rather than an int. It's a bit finicky (for example DIDescriptor::getTag still returns unsigned) because some places still handle real dwarf tags + our fake tags (one day we'll remove the fake tags, hopefully). llvm-svn: 206098
-
Eric Christopher authored
llvm-svn: 206097
-
Adrian Prantl authored
therefore, their declaration cannot have one DW_AT_linkage_name. The specific instances however can and should have that attribute. This patch reorders the code in DwarfUnit::getOrCreateSubprogramDIE() to emit linkage names for C/Dtors. rdar://problem/16362674. llvm-svn: 206096
-
Jim Grosbach authored
When -mcpu=native is passed, autodetect the host CPU and pass that as the CPU name to the TargetMachine factory method. llvm-svn: 206095
-
Jim Grosbach authored
This logic is properly in the realm of whatever is creating the TargetMachine. This makes plain 'llc foo.ll' consistent across heterogenous machines. llvm-svn: 206094
-
Hal Finkel authored
We had disabled use of TBAA during CodeGen (even when otherwise using AA) because the ptrtoint/inttoptr used by CGP for address sinking caused BasicAA to miss basic type punning that it should catch (and, thus, we'd fail to override TBAA when we should). However, when AA is in use during CodeGen, CGP now uses normal GEPs and bitcasts, instead of ptrtoint/inttoptr, when doing address sinking. As a result, BasicAA should be able to make us do the right thing in the face of type-punning, and it seems safe to enable use of TBAA again. self-hosting seems fine on PPC64/Linux on the P7, with TBAA enabled and -misched=shuffle. Note: We still don't update TBAA when merging stack slots, although because BasicAA should now catch all such cases, this is no longer a blocking issue. Nevertheless, I plan to commit code to deal with this properly in the near future. llvm-svn: 206093
-
Hal Finkel authored
The current memory-instruction optimization logic in CGP, which sinks parts of the address computation that can be adsorbed by the addressing mode, does this by explicitly converting the relevant part of the address computation into IR-level integer operations (making use of ptrtoint and inttoptr). For most targets this is currently not a problem, but for targets wishing to make use of IR-level aliasing analysis during CodeGen, the use of ptrtoint/inttoptr is a problem for two reasons: 1. BasicAA becomes less powerful in the face of the ptrtoint/inttoptr 2. In cases where type-punning was used, and BasicAA was used to override TBAA, BasicAA may no longer do so. (this had forced us to disable all use of TBAA in CodeGen; something which we can now enable again) This (use of GEPs instead of ptrtoint/inttoptr) is not currently enabled by default (except for those targets that use AA during CodeGen), and so aside from some PowerPC subtargets and SystemZ, there should be no change in behavior. We may be able to switch completely away from the ptrtoint/inttoptr sinking on all targets, but further testing is required. I've doubled-up on a number of existing tests that are sensitive to the address sinking behavior (including some store-merging tests that are sensitive to the order of the resulting ADD operations at the SDAG level). llvm-svn: 206092 -
Justin Bogner authored
Make sure that templates are handled correctly by profile instrumentation. llvm-svn: 206091
-
Warren Hunt authored
No functional change. llvm-svn: 206090
-
Chad Rosier authored
llvm-svn: 206089
-
Adrian Prantl authored
for CXXGlobalInit/Dtor helper functions. This makes _GLOBAL__I_a regain its DW_AT_high/low_pc in the debug info. Thanks to echristo for catching this! llvm-svn: 206088
-
Warren Hunt authored
If a vtordisp exists between two bases, then there is no need for additional alias avoidance padding. Test case included. llvm-svn: 206087
-
Duncan P. N. Exon Smith authored
Documents terminology used in the forthcoming rewrite of BlockFrequencyInfo. <rdar://problem/14292693> llvm-svn: 206086
-
Duncan P. N. Exon Smith authored
No functionality change. <rdar://problem/14292693> llvm-svn: 206085
-
Duncan P. N. Exon Smith authored
Moves redundant template parameters into an implementation detail of BlockFrequencyInfoImpl. No functionality change. <rdar://problem/14292693> llvm-svn: 206084
-
Duncan P. N. Exon Smith authored
This is a shared implementation class for BlockFrequencyInfo and MachineBlockFrequencyInfo, not for BlockFrequency, a related (but distinct) class. No functionality change. <rdar://problem/14292693> llvm-svn: 206083
-
Duncan P. N. Exon Smith authored
No functionality change. <rdar://problem/14292693> llvm-svn: 206082
-
Justin Bogner authored
Until now we were generating duplicate counters for lambdas: one set in the function where the lambda was declared and another for the lambda itself. Instead, we should skip over the bodies of lambdas in their containing contexts. llvm-svn: 206081
-
David Blaikie authored
Based on a code review suggestion from Eric Christopher in r205990 llvm-svn: 206080
-
Louis Gerbarg authored
This patch adds patterns to generate the cls instruction ARM64. Includes tests for 64 bit and 32 bit operands. rdar://15611957 llvm-svn: 206079
-
David Blaikie authored
llvm-svn: 206078
-
Warren Hunt authored
A portion of the vtordisp computation that was previously unguarded by a test for the declaration of user defined constructors/destructors was erroniously adding vtordisps to things that shouldn't have them. This patch correctly guards that codepath. In addition, it updates the comments to make them more clear. Test case is included. llvm-svn: 206077
-
Benjamin Kramer authored
Found by -Wdocumentation. llvm-svn: 206076
-
Quentin Colombet authored
fexhaustive-register-search => exhaustive-register-search 'f' is a Clang thing! This is related to PR18747. llvm-svn: 206075
-
Quentin Colombet authored
-fexhaustive-register-search option to allow an exhaustive search during last chance recoloring. This is related to PR18747 Patch by MAYUR PANDEY <mayur.p@samsung.com>. llvm-svn: 206072
-
Matt Arsenault authored
Through some oddity where truncate (sextload x) isn't folded into an anyextload for vectors, the sextload remains if the vector isn't immediately scalarized. This keeps the expected zextload instructions in the kernel-args test when small type vectors aren't scalarized. llvm-svn: 206070
-
Yunzhong Gao authored
The -fms-extensions option affects a number of subtle front-end C/C++ behaviors, and it would be useful to be able to distinguish MS keywords from regular identifiers in the ms-extensions mode even if the triple does not define a Windows target. It should make life easier if anyone needs to port their Windows codes to elsewhere. Differential Revision: http://reviews.llvm.org/D3034 llvm-svn: 206069
-
Lang Hames authored
MCDisassembler has an MCSymbolizer member that is meant to take care of symbolizing during disassembly, but it also has several methods that enable the disassembler to do symbolization internally (i.e. without an attached symbolizer object). There is no need for this duplication, but ARM64 had been making use of it. This patch moves the ARM64 symbolization logic out of ARM64Disassembler and into an ARM64ExternalSymbolizer class, and removes the duplicated MCSymbolizer functionality from the MCDisassembler interface. Symbolization will now be done exclusively through MCSymbolizers. There should be no impact on disassembly for any platform, but this allows us to tidy up the MCDisassembler interface and simplify the process of (and invariants related to) disassembler setup. llvm-svn: 206063
-
Quentin Colombet authored
When rematerializing an instruction that defines a super register that would be used by a physical subregisters we use the related physical super register for the definition. To keep the live-range information accurate, all the defined subregisters must be marked as dead def, otherwise the register allocation may miss some interferences. Working on a reduced test-case! <rdar://problem/16582185> llvm-svn: 206060
-
Matt Arsenault authored
Better match what is done for VOPC to eventually prefer selecting these. llvm-svn: 206048
-
Rafael Espindola authored
This fixes a regression from r205076. llvm-svn: 206047
-
Adrian Prantl authored
llvm-svn: 206046
-
Matt Arsenault authored
ashr <N x iM>, <N x iM> M -> undef llvm-svn: 206045
-
Tobias Grosser authored
+ vim 'fixed' line endings in json_value.cpp Contributed-by:Johannes Doerfert <doerfert@cs.uni-saarland.de> llvm-svn: 206044
-
Dmitry Vyukov authored
otherwise reports get intermixed llvm-svn: 206043
-
Adrian Prantl authored
so DwarfDebug::emitDebugLocEntry can emit them with the correct signedness. rdar://problem/15928306 llvm-svn: 206042
-
Matt Arsenault authored
This seems generally useful, and makes sense to go along with SplitVector. llvm-svn: 206041
-
Greg Clayton authored
Patch from Vyacheslav Karpukhin. llvm-svn: 206040
-