- Dec 02, 2020
-
-
Sylvain Audi authored
Support the joined version of -o (-ofilepath), and ensure we use the last provided -o option. Differential Revision: https://reviews.llvm.org/D92330
-
Arthur Eubanks authored
This allows us to use its value everywhere, rather than just clang. Some other places, like opt and lld, will use its value soon. The #define for it is now in llvm-config.h. Reviewed By: rnk, hans Differential Revision: https://reviews.llvm.org/D92072
-
Nico Weber authored
Turns out startswith() takes an optional start parameter :) No behavior change.
-
Layton Kifer authored
Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D92246
-
Saleem Abdulrasool authored
This simply marks the functions as const as they do not mutate the value. This is useful for debugging iterations during development. NFCI.
-
Zahira Ammarguellat authored
classes that haven't been instantiated. This is generating an assertion in DeclTemplate.h. Fix for Bug25668.
-
Fangrui Song authored
By default, a non-template variable of non-volatile const-qualified type having namespace-scope has internal linkage, so no need for `static`.
-
Fangrui Song authored
-
Arthur Eubanks authored
This matches the legacy PM. Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D92138
-
Bardia Mahjour authored
This reverts commit 9c5504ad. Reverting to investigate build failure in http://lab.llvm.org:8011/#/builders/98/builds/1461/steps/9
-
Louis Dionne authored
Reported in https://twitter.com/blelbach/status/1169807347142676480 Differential Revision: https://reviews.llvm.org/D67273
-
Rahman Lavaee authored
Currently, `llvm_bb_addr_map` sections are generated per section names because we use the `LinkedToSymbol` argument of getELFSection. This will cause the address map tables of functions grouped into the same section when `-function-sections=true -unique-section-names=false` which is not the intended behaviour. This patch lets the unique id of every `.text` section propagate to the associated `.llvm_bb_addr_map` section. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D92113
-
Nikita Popov authored
-
Roman Lebedev authored
-
Nico Weber authored
The new MachO lld just grew support for response files in D92149, so let the clang driver use it. Differential Revision: https://reviews.llvm.org/D92399
-
Bardia Mahjour authored
This is yet another attempt at providing support for epilogue vectorization following discussions raised in RFC http://llvm.1065342.n5.nabble.com/llvm-dev-Proposal-RFC-Epilog-loop-vectorization-tt106322.html#none and reviews D30247 and D88819. Similar to D88819, this patch achieve epilogue vectorization by executing a single vplan twice: once on the main loop and a second time on the epilogue loop (using a different VF). However it's able to handle more loops, and generates more optimal control flow for cases where the trip count is too small to execute any code in vector form. Reviewed By: SjoerdMeijer Differential Revision: https://reviews.llvm.org/D89566
-
Fangrui Song authored
If an object file has an undefined foo@v1, we emit a dynamic symbol foo. This is incorrect if at runtime a shared object provides the non-default version foo@v1 (the undefined foo may bind to foo@@v2, for example). GNU ld issues an error for this case, even if foo@v1 is undefined weak (https://sourceware.org/bugzilla/show_bug.cgi?id=3351). This behavior makes sense because to represent an undefined foo@v1, we have to construct a Verneed entry. However, without knowing the defining filename, we cannot construct a Verneed entry (Verneed::vn_file is unavailable). This patch implements the error. Depends on D92258 Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D92260
-
Nikita Popov authored
This is a straightforward port of MemCpyOpt to MemorySSA following the approach of D26739. MemDep queries are replaced with MSSA queries without changing the overall structure of the pass. Some care has to be taken to account for differences between these APIs (MemDep also returns reads, MSSA doesn't). Differential Revision: https://reviews.llvm.org/D89207
-
Fangrui Song authored
The symbol resolution rules for versioned symbols are: * foo@@v1 (default version) resolves both undefined foo and foo@v1 * foo@v1 (non-default version) resolves undefined foo@v1 Note, foo@@v1 must be defined (the assembler errors if attempting to create an undefined foo@@v1). For defined foo@@v1 in a shared object, we call `SymbolTable::addSymbol` twice, one for foo and the other for foo@v1. We don't do the same for object files, so foo@@v1 defined in one object file incorrectly does not resolve a foo@v1 reference in another object file. This patch fixes the issue by reusing the --wrap code to redirect symbols in object files. This has to be done after processing input files because foo and foo@v1 are two separate symbols if we haven't seen foo@@v1. Add a helper `Symbol::getVersionSuffix` to retrieve the optional trailing `@...` or `@@...` from the possibly truncated symbol name. Depends on D92258 Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D92259
-
Fangrui Song authored
Test the symbol resolution related to * defined foo@@v1 and foo@v1 in object files/shared objects * undefined foo@v1 * weak foo@@v1 and foo@v1 * visibility * interaction with --wrap. Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D92258
-
Fangrui Song authored
`gcc -mcmodel=large` can emit @PLTOFF. Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D92294
-
Juneyoung Lee authored
-
- Dec 01, 2020
-
-
Clement Courbet authored
We were not correctly splitting a blocks for chains of length 1. Before that change, additional instructions for blocks in chains of length 1 were not split off from the block before removing (this was done correctly for chains of longer size). If this first block contained an instruction referenced elsewhere, deleting the block, would result in invalidation of the produced value. This caused a miscompile which motivated D92297 (before D17993, nonnull and dereferenceable attributed were not added so MergeICmps were not triggered.) The new test gep-references-bb.ll demonstrate the issue. The regression was introduced in rG0efadbbc. This supersedes D92364. Test case by MaskRay (Fangrui Song). Differential Revision: https://reviews.llvm.org/D92375
-
Aaron En Ye Shi authored
Fix hip test failures that were introduced by previous changes to hip-toolchain-rdc-static-lib.hip test. The .*lld.* is matching a longer string than expected. Differential Revision: https://reviews.llvm.org/D92342
-
Sanjay Patel authored
Without FMF, we lower these intrinsics into something like this: vmaxsd %xmm0, %xmm1, %xmm2 vcmpunordsd %xmm0, %xmm0, %xmm0 vblendvpd %xmm0, %xmm1, %xmm2, %xmm0 But if we can ignore NANs, the single min/max instruction is enough because there is no need to fix up the x86 logic that corresponds to X > Y ? X : Y. We probably want to make other adjustments for FP intrinsics with FMF to account for specialized codegen (for example, FSQRT). Differential Revision: https://reviews.llvm.org/D92337
-
Benjamin Kramer authored
-
David Green authored
We already expand select and select_cc in codegenprepare, but they can still be generated under some situations. Explicitly mark them as expand to ensure they are not produced, leading to a failure to select the nodes. Differential Revision: https://reviews.llvm.org/D92373
-
Sanjay Patel authored
icmp is the preferred spelling in IR because icmp analysis is expected to be better than any other analysis. This should lead to more follow-on folding potential. It's difficult to say exactly what we should do in codegen to compensate. For example on AArch64, which of these is preferred: sub w8, w0, w1 lsr w0, w8, #31 vs: cmp w0, w1 cset w0, lt If there are perf regressions, then we should deal with those in codegen on a case-by-case basis. A possible motivating example for better optimization is shown in: https://llvm.org/PR43198 but that will require other transforms before anything changes there. Alive proof: https://rise4fun.com/Alive/o4E Name: sign-bit splat Pre: C1 == (width(%x) - 1) %s = sub nsw %x, %y %r = ashr %s, C1 => %c = icmp slt %x, %y %r = sext %c Name: sign-bit LSB Pre: C1 == (width(%x) - 1) %s = sub nsw %x, %y %r = lshr %s, C1 => %c = icmp slt %x, %y %r = zext %c
-
Raphael Isemann authored
* Un-inline the test. * Use expect_expr everywhere and also check all involved types. * Clang-format the test sources. * Explain what we're actually testing with the 'C' and 'D' templates. * Split out the non-template-parameter-pack part of the test into its own small test.
-
Simon Pilgrim authored
Move the X86 VSELECT->USUBSAT fold to DAGCombiner - there's nothing target specific about these folds.
-
Florian Hahn authored
Add support to decompose a GEP with a ZEXT(SHL()) operand.
-
Nico Weber authored
All three use readFile() for their argument so their argument file is already copied to the tar, but we weren't rewriting the argument to point to the path used in the tar file. No test because the change is trivial (several other flags in createResponseFile() also aren't tested, likely for the same reason.) Differential Revision: https://reviews.llvm.org/D92356
-
Alexey Baturo authored
Reviewed By: luismarques, phosek, kito-cheng Differential Revision: https://reviews.llvm.org/D87997
-
Kazushi (Jam) Marukawa authored
Add vmul and vdiv intrinsic instructions and regression tests. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92377
-
Simon Pilgrim authored
-
Bhramar Vatsa authored
C.f. https://bugs.llvm.org/show_bug.cgi?id=47765 Added a case for handling the sign-extend (Shl+AShr) for multiple uses, to optimize it away for an individual use, when the demanded bits aren't affected by sign-extend. https://rise4fun.com/Alive/lgf Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D91343
-
Roman Lebedev authored
If the shift amount was undef for some lane, the shift amount in opposite shift is irrelevant for that lane, and the new shift amount for that lane can be undef.
-
AndreyChurbanov authored
Added UNLIKELY hint to one-time or rarely executed branches. This improves performance of the library on some tasking benchmarks. Differential Revision: https://reviews.llvm.org/D92322
-
Sanjay Patel authored
-
Hans Wennborg authored
-