- Aug 19, 2022
-
-
Fabian Parzefall authored
This changes code emission such that it can emit specific function fragments instead of scanning all basic blocks of a function and just emitting those that are hot or cold. To implement this, `FunctionLayout` explicitly distinguishes the "main" fragment (i.e. the one that contains the entry block and is associated with the original symbol) from "split" fragments. Additionally, `BinaryFunction` receives support for multiple cold symbols - one for each split fragment. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D130052
-
David Blaikie authored
Test is flaky. This reverts commit e9c5bde8.
-
David Blaikie authored
Owing to the large number of instantiations of this function, this small change has a small but meaningful difference on the total size of (especially a debug) build of clang at -O0: ``` FILE SIZE VM SIZE -------------- -------------- +0.9% +96.9Ki +0.9% +96.9Ki .data.rel.ro +0.7% +96.7Ki +0.7% +96.7Ki .rela.dyn +0.0% +18.3Ki +0.0% +18.3Ki .rodata +0.0% +324 [ = ] 0 [2 Others] -0.2% -392 -0.2% -392 .gnu.version -0.0% -441 [ = ] 0 .debug_abbrev -0.1% -980 -0.1% -980 .gnu.hash -0.2% -1.53Ki -0.2% -1.53Ki .hash -0.2% -4.59Ki -0.2% -4.59Ki .dynsym -0.1% -10.5Ki [ = ] 0 .debug_rnglists -0.6% -59.0Ki -0.6% -59.0Ki .dynstr -0.2% -191Ki [ = ] 0 .debug_str_offsets -3.0% -233Ki -3.0% -233Ki .eh_frame_hdr -0.7% -244Ki [ = ] 0 .debug_addr -2.9% -699Ki [ = ] 0 .symtab -0.6% -884Ki [ = ] 0 .debug_line -3.0% -932Ki -3.0% -932Ki .eh_frame -1.0% -1.48Mi -1.0% -1.48Mi .text -0.6% -2.75Mi [ = ] 0 .debug_info -7.3% -8.61Mi [ = ] 0 .strtab -7.3% -17.2Mi [ = ] 0 .debug_str -2.4% -33.0Mi -0.9% -2.47Mi TOTAL ``` If anyone's got other ideas for how to reduce this further - it's not especially important, I just came across it while investigating a debug info size regression, but thought it was interesting enough to poke around at. -
Craig Topper authored
Reviewed By: arcbbb Differential Revision: https://reviews.llvm.org/D132177
-
Craig Topper authored
Especially the NoFPExcept flag for FP. Reviewed By: fakepaper56 Differential Revision: https://reviews.llvm.org/D132173
-
Tung D. Le authored
[MLIR][normalize-memrefs] Non-normalizable operations with identity map layouts do not block normalization of the entire function The current approach is convervative in which whenever there is a non-normalizable operations in a function will the function be labelled as non-normalizable. It means it requires that all operations must have MemRefsNormalizable trait. This patch relaxes the requirement that if the memref map layouts of a non-normalizable operation are identity, this operation does not block the normalization of the other operations in the same function. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D125854
-
John Ericson authored
This reverts commit f7a33090. Unfortunately this causes a number of failures that didn't show up in my local build.
-
Yonghong Song authored
Currently, record arguments are always passed by reference by allocating space for record values in the caller. This is less efficient for small records which may take one or two registers. For example, for x86_64 and aarch64, for a record size up to 16 bytes, the record values can be passed by values directly on the registers. This patch added BPF support of record argument with direct values for up to 16 byte record size. If record size is 0, that record will not take any register, which is the same behavior for x86_64 and aarch64. If the record size is greater than 16 bytes, the record argument will be passed by reference. Differential Revision: https://reviews.llvm.org/D132144
-
wanglian authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D132115
-
lewuathe authored
Add an option (cleanUpUnroll) to unroll cleanup loop even if the trip count is smaller the unroll factor. Differential Revision: https://reviews.llvm.org/D129171
-
Alexander Shaposhnikov authored
AdrpAdd fusion is already enabled for "generic" and it helps the linker apply relocation relaxations for more adrp+add pairs. This patch enables it for -mtune=neoverse-n1. Differential revision: https://reviews.llvm.org/D132075
-
Amir Ayupov authored
This reverts commit 29f23013. This change breaks one of the internal tests.
-
Thomas Raoux authored
The tiling interface implementation was making assumption on the code generated by makeTiledShape which were wrong. The ExtractSliceOp create may be combined with other ExtractSliceOp. To solve that we compute directly the offset using the new utilities. Differential Revision: https://reviews.llvm.org/D132182
-
Mike Rice authored
The 'init' clause allows an interop-modifier of prefer_type(list) and and interop-types 'target' and 'targetsync'. The 'append_args' clause uses an append-op that also includes interop-types ('target' and 'targetsync') and will allow a prefer_type list in the next OpenMP version. This change adds a helper struct OMPInteropInfo and uses it in the parsing of both the 'init' and 'append_args' clauses. One OMPInteropInfo object represents the info in a single 'init' clause. Since 'append_args' allows a variable number of interop items it will require an array of OMPInteropInfo objects once that is supported. Differential Revision: https://reviews.llvm.org/D132171 -
Karl Meakin authored
This time more conservative. Differential review: https://reviews.llvm.org/D125504
-
Fangrui Song authored
Using Max for both "PIC Level" and "PIE Level" is inconsistent. PIC imposes less restriction while PIE imposes more restriction. The result generally picks the more restrictive behavior: Min for PIC. This choice matches `ld -r`: a non-pic object and a pic object merge into a result which should be treated as non-pic. To allow linking "PIC Level" using Error/Max from old bitcode files, upgrade Error/Max to Min. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D130531
-
Craig Topper authored
The previous implementation translated from names like sifive-7-series to sifive-7-rv32 or sifive-7-rv64. This also required sifive-7-rv32 and sifive-7-rv64 to be valid CPU names. As those are not real CPUs it doesn't make sense to accept them in -mcpu. This patch does away with the translation and adds sifive-7-series directly to RISCV.td. Removing sifive-7-rv32 and sifive-7-rv64. sifive-7-series is only allowed in -mtune. I've also added "rocket" to RISCV.td but have not removed rocket-rv32 or rocket-rv64. To prevent -mcpu=sifive-7-series or -mcpu=rocket being used with llc, I've added a Feature32Bit to all rv32 CPUs. And made it an error to have an rv32 triple without Feature32Bit. sifive-7-series and rocket do not have Feature32Bit or Feature64Bit set so the user would need to provide -mattr=+32bit or -mattr=+64bit along with the -mcpu to avoid the error. SiFive no longer names their newer products with 3, 5, or 7 series. Instead we have p200 series, x200 series, p500 series, and p600 series. Following the previous behavior would require a sifive-p500-rv32 and sifive-p500-rv64 in order to support -mtune=sifive-p500-series. There is currently no p500 product, but it could start getting confusing if there was in the future. I'm open to hearing alternatives for how to achieve my main goal of removing sifive-7-rv32/rv64 as a CPU name. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D131708
-
Shoaib Meenai authored
This was superseded by 5737f6a5. Clean it up as suggested by Mike Hommey in https://reviews.llvm.org/D131937.
-
Peter Klausler authored
Formatted input allows for an empty numeric input field, which signifies a zero value, but list-directed and NAMELIST input does not -- apart from the special case of a NAMELIST array. Differential Revision: https://reviews.llvm.org/D132178
-
LLVM GN Syncbot authored
-
Peter Klausler authored
The runtime I/O library correctly handles endianness conversions on payload data I/O and on the output of sequential record headers and footers, but does not swap endianness when required when reading sequential record headers and footers back in for READ and BACKSPACE statements. Mea culpa. Fix. Fixes https://github.com/llvm/llvm-project/issues/57126 Differential Revision: https://reviews.llvm.org/D132168
-
Peter Klausler authored
A character array can be used as a format in an I/O data transfer statement, with the interpretation that its elements are concatenated in element order to constitute the format. Support in the runtime with an extra optional descriptor argument to six I/O API calls; support in semantics by removing an earlier check for a simply contiguous array presented as a format. Some work needs to be done in lowering to pass a character array descriptor to the I/O runtime API when present Differential Revision: https://reviews.llvm.org/D132167
-
Eric Wang authored
This patch introduces the priority analysis and the priority advisor, the default implementation, and the scaffolding for introducing the other implementations of the advisor. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D131220
-
Peter Klausler authored
The MOLD= argument to NULL() is allowed to be a null pointer itself -- for example, NULL(MOLD=NULL(MOLD=...)) should not raise spurious semantic errors. Differential Revision: https://reviews.llvm.org/D132166
-
Peter Klausler authored
Emit a "Assignment to procedure 'foo' is not allowed" error message for more cases of 'foo' than just declaraed subprograms, rather than assuming that those additional cases were named constants. Differential Revision: https://reviews.llvm.org/D132165
-
Peter Klausler authored
f18 unconditionally uses a scaling algorithm for complex/complex division that avoids needless overflows and underflows when computing the sum of the squares of the components of the denominator -- but testing has shown some 1 ULP differences relative to the naive calculation due to the extra operations and roundings. So use the scaling algorithm only when the naive calculation actually would overflow or underflow. Differential Revision: https://reviews.llvm.org/D132164
-
Peter Klausler authored
When a particular module name has been brought into a compilation as an intrinsic module via USE,INTRINSIC, perhaps indirectly via an enclosing USE statement, f18 will resolve later USE statements to it unless they are USE,NON_INTRINSIC. This is not entirely correct -- a bare USE statement for a module name that happens to match that of an intrinsic module should still search the search paths for a non-intrinsic module file of the same name. Differential Revision: https://reviews.llvm.org/D132163
-
Peter Klausler authored
When checking function interface compatibility for procedure pointer assignment/initialization or actual/dummy procedure association, don't emit a diagnositic about function result shape incompatibility unless the interfaces differ in rank or have distinct constant extents on a dimension. Function results whose dimensions are determined by dummy arguments or host-associated variables are not necessarily incompatible. Differential Revision: https://reviews.llvm.org/D132162
-
Peter Klausler authored
Assignment statements need to check for array shape conformance errors that are discernable at compilation time. Differential Revision: https://reviews.llvm.org/D132161
-
Peter Klausler authored
In the case of a data transfer I/O statement with an illegal unit number and error recovery, ensure that data transfer API calls don't raise internal errors due to the I/O statement representation unexpectedly being something other than a data transfer statement. Differential Revision: https://reviews.llvm.org/D132160
-
Adrian Vogelsgesang authored
Implements part of P1614R2 "The Mothership has Landed" Differential Revision: https://reviews.llvm.org/D130860
-
Peter Klausler authored
A literal % character in an error message needs to be doubled so that it appears in the output of snprintf(). Differential Revision: https://reviews.llvm.org/D132158
-
Peter Klausler authored
While a NAMELIST input group item for an array can have fewer values than expected, or none, an input group item for a scalar must have a value. Differential Revision: https://reviews.llvm.org/D132157
-
Peter Klausler authored
CharacterExtremumAccumulator::GetResult() needs to use byte counts, not wide character counts, when calling memcpy() & memset(). Differential Revision: https://reviews.llvm.org/D132156
-
Peter Klausler authored
The intrinsic function SPACING() was being folded to the smallest normal number (TINY(x)) rather than to a smaller subnormal result when that result really was subnormal. Differential Revision: https://reviews.llvm.org/D132155
-
LLVM GN Syncbot authored
-
Peter Klausler authored
Support these legacy extension intrinsic functions with unambiguous semantics in those existing compilers that support them by means of recognizing them as aliases for standard intrinsics (IMAG) or with simple rewrites (IZEXT, JZEXT). Note that ZEXT has different semantics in different existing compilers, so we will not support it due to lack of a broad unambiguous precedent. Differential Revision: https://reviews.llvm.org/D132154
-
Sanjay Patel authored
(~A | C) | (A ^ B) --> ~(A & B) | C https://alive2.llvm.org/ce/z/Qw3aiJ This extends the existing fold (just above the new match) to peek through another 'or' instruction. This should let the motivating case from issue #57174 simplify completely.
-
Sanjay Patel authored
-
Adrian Vogelsgesang authored
Implements part of P1614R2 "The Mothership has Landed" Differential Revision: https://reviews.llvm.org/D130859
-