- Jan 12, 2022
-
-
William S. Moses authored
Add memory effect for llvm.alloca op Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D117086
-
zhongyunde authored
In working on D116915 I found that a few tests were needed. I've been asked to pre-push the tests for that ticket. This should complete the tests needed for now.
-
Austin Kerbow authored
After the split register allocation changes in eebe841a it is no longer necessary to reserve a VGPR before RA. This can also create bugs when IPRA is enabled since we cannot predict that a called function may not reserve any register if it does not have any SGPR spills. If that happens those functions may override reserved registers that are normally callee saved. Added a test to show this. Fixes: SWDEV-309900 Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D115551
-
Chuanqi Xu authored
-
Shoaib Meenai authored
This reverts commit 4993eff3. Tests are failing on Windows: http://45.33.8.238/win/52360/step_11.txt. We'll need to account for forward slashes vs. backslashes.
-
Amir Ayupov authored
Mehdi spotted that our build instructions don't make sense in a monorepo: https://github.com/facebookincubator/BOLT/pull/269. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D117062
-
Saiyedul Islam authored
Passing any feature in the device-isa trait which is not supported by the host was causing a compilation failure. Differential Revision: https://reviews.llvm.org/D116549
-
Amir Aupov authored
Address the comment at: https://github.com/llvm/llvm-project/commit/4c106cfdf7cf7eec861ad3983a3dd9a9e8f3a8ae#r63658159 Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D117083
-
Amir Ayupov authored
Add BOLT to the project list enabling its build. Differential Revision: https://reviews.llvm.org/D117063
-
Jim Lin authored
LLVM_LIB_TARGET_CPU0_M68KSUBTARGET_H -> LLVM_LIB_TARGET_M68K_M68KSUBTARGET_H
-
Jim Lin authored
-
Craig Topper authored
This adds support for STRICT_FSETCC(quiet) and STRICT_FSETCCS(signaling). FEQ matches well to STRICT_FSETCC oeq. FLT/FLE matches well to STRICT_FSETCCS olt/ole. Others require commuting operands or multiple instructions. STRICT_FSETCC olt/ole/ogt/oge/ult/ule/ugt/uge uses FLT/FLE, but we need to save/restore FFLAGS around them to avoid spurious exceptions. I've implemented pseudo instructions with a CustomInserter to insert the save/restore CSR instructions. Unfortunately, this doesn't honor exceptions for signaling NANs but I'm not sure if signaling nans are really supported by the constrained intrinsics. STRICT_FSETCC one and ueq expand to a pair of FLT instructions with a save/restore of fflags around each. This could be improved in the future. There may be some opportunities to generate better code for strict comparisons mixed with nonans fast math flags. I've left FIXMEs in the .td files for that. Co-Authored-by:
ShihPo Hung <shihpo.hung@sifive.com> Reviewed By: arcbbb Differential Revision: https://reviews.llvm.org/D116694
-
Mircea Trofin authored
This avoids the InlineAdvisor carrying the responsibility of deleting Function objects. We use LazyCallGraph::Node objects instead, which are stable in memory for the duration of the Module-wide performance of CGSCC passes started under the same ModuleToPostOrderCGSCCPassAdaptor (which is the case here) Differential Revision: https://reviews.llvm.org/D116964
-
Nico Weber authored
-
Dave Lee authored
-
Nico Weber authored
-
Fangrui Song authored
Similar to D116143. My x86-64 `lld` is ~5KiB smaller. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D116996
-
Chuanqi Xu authored
This fixes bug52896. Simply, some symmetric transfer optimization chances get invalided due to we delete some inlined optimization passes in 822b92aa. This would cause stack-overflow in some situations which should be avoided by the design of coroutine. This patch tries to fix this by transforming the constant CmpInst instruction which was done in the deleted passes. Reviewed By: rjmccall, junparser Differential Revision: https://reviews.llvm.org/D116327
-
Duncan P. N. Exon Smith authored
Extract the `readNativeFile()` loop from `MemoryBuffer::getMemoryBufferForStream()` into `readNativeFileToEOF()` to allow reuse. The chunk size is configurable; the default of `4*4096` is exposed as `sys::fs::DefaultReadChunkSize` to allow sizing of SmallVectors. There's somewhere I'd like to read a usually-small file without overhead of a MemoryBuffer; extracting existing logic rather than duplicating it. Differential Revision: https://reviews.llvm.org/D115397
-
Duncan P. N. Exon Smith authored
Replace a `reserve()`/`set_size()` pair with `resize_for_overwrite()` and `truncate()`. The out parameter also needs a `clear()` call on the error path. Differential Revision: https://reviews.llvm.org/D115389
-
Duncan P. N. Exon Smith authored
Replace a few `reserve()` / `set_size()` pairs with `resize_for_overwrite()` / `truncate()` in the platform-specific code for Windows. Differential Revision: https://reviews.llvm.org/D115390
-
Duncan P. N. Exon Smith authored
Update UnresolvedSet to use (and expose) `SmallVector::truncate()` instead of `SmallVector::set_size()`. The latter is going to made private in a future commit to avoid misuse. Differential Revision: https://reviews.llvm.org/D115386
-
Jez Ng authored
After {D115416}, the "Write map file" event no longer shows up in the time trace. Each time trace profiler instance is thread-local, but we had neglected to initialize a separate instance for the mapfile worker thread. Reviewed By: keith Differential Revision: https://reviews.llvm.org/D117069 -
Duncan P. N. Exon Smith authored
Update `SmallString::append()` to use `resize_for_overwrite()` instead of `reserve()` followed by `set_size()`. Differential Revision: https://reviews.llvm.org/D115382
-
William S. Moses authored
Canonicalize away unused arguments to the before region of a whileOp Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D117059
-
Duncan P. N. Exon Smith authored
Update `variadicMatcherDescriptor` to assert on reserved capacity and to call `emplace_back()` instead of calling `set_size()` and constructing the element in-place. Differential Revision: https://reviews.llvm.org/D115379
-
Joe Loser authored
Move `iter_swap.pass.cpp` into a new subdirectory: `iterator.cust.swap` for symmetry with the neighboring subdirectory `iterator.cust.move`. Differential Revision: https://reviews.llvm.org/D116992
-
Fangrui Song authored
D116913 will add LazyObject. Rename LazySymbol to LazyArchive to avoid confusion and mirror ELF. Reviewed By: #lld-macho, Jez Ng Differential Revision: https://reviews.llvm.org/D116914
-
Mircea Trofin authored
This happens in e.g. regalloc, where we trace decisions per function, but wouldn't want to spew N log files (i.e. one per function). So we output a key-value association, where the key is an ID for the sub-module object, and the value is the tensorflow::SequenceExample. The current relation with protobuf is tenuous, so we're avoiding a custom message type in favor of using the `Struct` message, but that requires the values be wire-able strings, hence base64 encoding. We plan on resolving the protobuf situation shortly, and improve the encoding of such logs, but this is sufficient for now for setting up regalloc training. Differential Revision: https://reviews.llvm.org/D116985
-
Adam Magier authored
The code generation for the UBSan VLA size check was qualified by a con- dition that the parameter must be a signed integer, however the C spec does not make any distinction that only signed integer parameters can be used to declare a VLA, only qualifying that it must be greater than zero if it is not a constant. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D116048
-
Mircea Trofin authored
-
Zequan Wu authored
This adds inline function support to NativePDB by parsing S_INLINESITE records to retrieve inlinee line info and add them into line table at `ParseLineTable`. Differential Revision: https://reviews.llvm.org/D116845
-
Julian Lettner authored
-
William S. Moses authored
Given a while loop whose condition is given by a cmp, don't recomputed the comparison (or its inverse) in the after region, instead use a constant since the original condition must be true if we branched to the after region. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D117047
-
Julian Lettner authored
These tests are now green: ``` Trace.MultiPart Trace.RestoreAccess Trace.RestoreMutexLock TraceAlloc.FinishedThreadReuse TraceAlloc.FinishedThreadReuse2 TraceAlloc.SingleThread ``` rdar://82107856
-
Konstantin Varlamov authored
-
Julian Lettner authored
-
Rainer Orth authored
D114294 <https://reviews.llvm.org/D114294> broke the Solaris buildbots: /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/llvm/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp:613:29: error: use of undeclared identifier 'NT_GNU_BUILD_ID' if (nhdr->n_type == NT_GNU_BUILD_ID && nhdr->n_namesz == kGnuNamesz) { ^ Like D107556 <https://reviews.llvm.org/D107556>, it forgot that `NT_GNU_BUILD_ID` is an unportable GNU extension. Fixed by making the code conditional on the definition of the macro. Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`. Differential Revision: https://reviews.llvm.org/D117051
-
Roger Kim authored
Print a warning if `llvm-libtool-darwin` if any of the object files provided by the user have the same file name. The tool will now print a warning if there is a name collision across: * Two object files * An object file and an object file from within a static library * Two object files from different static libraries Here is an example of the error: ``` $ llvm-libtool-darwin -static -o archive.a out.o out.o error: file 'out.o' was specified multiple times. in: out.o in: out.o $ llvm-libtool-darwin -static -o archive.a out.o $ llvm-libtool-darwin -static -o combined.a archive.a out.o error: file 'out.o' was specified multiple times. in: archive.a in: out.o ``` This change mimics apple's cctools libtool's behavior which always shows a warning in such cases. Reviewed By: smeenai Differential Revision: https://reviews.llvm.org/D113130
-
Roger Kim authored
Here we are refactoring the code to encapsulate data into classes. This allows us to avoid passing the same objects through many functions that don't directly use them. Now, functions that need to access data can do so from the class state. Reviewed By: jhenderson, smeenai Differential Revision: https://reviews.llvm.org/D113127
-