- Oct 29, 2020
-
-
David Spickett authored
It was printing "Usage:" twice. Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D90225
-
David Zarzycki authored
40dd4d52 introduced two new types.
-
Max Kazantsev authored
This makes the code more compact and readable.
-
Georgii Rymar authored
When `NoHeaders` is set, we still have following issues: 1) We emit the `.shstrtab` implicit section of size 1 (empty string table). 2) We still align the start of the section header table, what affects the output size. 3) We still write section header table bytes. This patch fixes all of these issues. Differential revision: https://reviews.llvm.org/D90295
-
David Green authored
Instcombine will currently sink identical shuffles though vector binary operations. This is probably generally useful, but can break up the code pattern we use to represent an interleaving load group. This patch reverses that in the InterleaveAccessPass to re-recognise the pattern of shuffles sunk past binary operations and folds them back if an interleave group can be created. Differential Revision: https://reviews.llvm.org/D89489
-
Sam McCall authored
Differential Revision: https://reviews.llvm.org/D90215
-
Max Kazantsev authored
This patch gets rid of output parameter which is not needed for most users and prepares this API for further refactoring.
-
Sam McCall authored
Differential Revision: https://reviews.llvm.org/D89126
-
Vitaly Buka authored
Done with debugging. Script didn't work because of low limit on open files on the bot. This reverts commit 220293da.
-
Christian Sigg authored
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D90370
-
Georgii Rymar authored
This removes Inputs/libbogus11.a Initially I've removed it in D90013, but had to restore it, because BB found this test is using it. I've updated the test to use YAMLs, added comment and one more possible error check. Differential revision: https://reviews.llvm.org/D90312
-
Cameron Finucane authored
As implemented, the `InterruptHandler` thread was spinning trying to `select()` on a null "stdin", wasting a significant amount of CPU for no benefit. As Fuchsia does not have a native concept of stdin (or POSIX signals), this commit simply removes this feature entirely. Reviewed By: aarongreen Differential Revision: https://reviews.llvm.org/D89266
-
Fangrui Song authored
The two tests rely on LegacyInlinerBase::doFinalization to remove Function::isDefTriviallyDead() functions. The new PM does not have the behavior. The -NEXT patterns checking the emptiness are actually sufficient. Note, reassociate-deadinst.ll has become stale - it no longer catches the problem r285380 intended. Unfortunately it is difficult to craft a new test because it is actually pretty difficult to break it with `MadeChange = true;` all over the file.
-
Serge Pavlov authored
These are moved from D88498. Differential Revision: https://reviews.llvm.org/D90026
-
Fangrui Song authored
-stats-json requires `TimeReagion PassTimer(getPassTimer(...))` in the legacy PM. The loss of functionality is not critical because we have the similar -time-passes.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
When we promote pointer arguments we did compute a wrong offset and use a wrong type for the array case. Bug reported and reduced by Whitney Tsang <whitneyt@ca.ibm.com>.
-
River Riddle authored
* Check region count for unknown symbol tables first, as it is a faster check * Add an accessor to MutableDictionaryAttr to get the internal dictionary without creating a new one if it is empty. This avoids an otherwise unnecessary lookup of an MLIRContext.
-
River Riddle authored
Often times the legality of inlining can change depending on if the callable is going to be inlined in-place, or cloned. For example, some operations are not allowed to be duplicated and can only be inlined if the original callable will cease to exist afterwards. The new `wouldBeCloned` flag allows for dialects to hook into this when determining legality. Differential Revision: https://reviews.llvm.org/D90360
-
River Riddle authored
In certain situations it isn't legal to inline a call operation, but this isn't something that is possible(at least not easily) to prevent with the current hooks. This revision adds a new hook so that dialects with call operations that shouldn't be inlined can prevent it. Differential Revision: https://reviews.llvm.org/D90359
-
Ben Shi authored
Reviewed By: dylanmckay Differential Revision: https://reviews.llvm.org/D88352
-
Ben Shi authored
Reviewed By: dylanmckay https://reviews.llvm.org/D87968
-
Fangrui Song authored
Also move exportDebugifyStats from tools/opt to Debugify.cpp
-
Vedant Kumar authored
This reverts commit 99053462. It breaks the compiler-rt build, see https://reviews.llvm.org/D89838
-
Vedant Kumar authored
This reverts commit 2ce36ebc. It depends on https://reviews.llvm.org/D89838, which needs to be reverted.
-
Mircea Trofin authored
llvm::EmbedBitcodeInModule needs (what used to be called) EmbedMarker set, in order to emit .llvmcmd. EmbedMarker is really about embedding the command line, so renamed the parameter accordingly, too. This was not caught at test because the check-prefix was incorrect, but FileCheck does not report that when multiple prefixes are provided. A separate patch will address that. Differential Revision: https://reviews.llvm.org/D90278
-
Derek Schuff authored
Since Wasm comdat sections work similarly to ELF, we can use that mechanism to eliminate duplicate dwarf type information in the same way. Differential Revision: https://reviews.llvm.org/D88603 -
Haruki Imai authored
This patch fixes a bug [[ https://bugs.llvm.org/show_bug.cgi?id=46091 | 46091 ]] Raw data for the `dense-element attribute` is written in little endian (LE) format. This commit converts the format to big endian (BE) in ʻAttribute Parser` on the BE machine. Also, when outputting on a BE machine, the BE format is converted to LE in "AsmPrinter". Differential Revision: https://reviews.llvm.org/D80695
-
River Riddle authored
This revision optimizes the parsing of hex strings by using the checked variant of llvm::fromHex, and adding a specialized method to Token for extracting hex strings. This leads a large decrease in compile time when parsing large hex constants (one example: 2.6 seconds -> 370 miliseconds) Differential Revision: https://reviews.llvm.org/D90266
-
River Riddle authored
This method is at the core of the conversion from hex to binary, and using a lookup table great improves the compile time of hex conversions. Context: In MLIR we use hex strings to represent very large constants in the textual format of the IR. These changes lead to a large decrease in compile time when parsing these constants (>1 second -> 350 miliseconds). Differential Revision: https://reviews.llvm.org/D90320
-
River Riddle authored
This revision adds a fail-able/checked version of `fromHex` that fails when the input string contains a non-hex character. This removes the need for users to have a separate check for if the string contains all hex digits. This becomes very costly for large hex strings given that checking if a string contains only hex digits is effectively the same as just converting it in the first place. Context: In MLIR we use hex strings to represent very large constants in the textual format of the IR. These changes lead to a large decrease in compile time when parsing these constants (2 seconds -> 1 second). Differential Revision: https://reviews.llvm.org/D90265
-
Jonas Devlieghere authored
We're no longer convinced that this is needed and we have no test coverage to disprove that. Backing out of this change until we're convinced otherwise.
-
Kazushi (Jam) Marukawa authored
Add VFMK/VFMS/VFMF/ANDM/ORM/XORM/EQVM/NNDM/NEGM/PCVM/LZVM/TOVM isntructions. Add regression tests too. Also add new patterns to parse VFMK/VFMS/VFMF mnemonics. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D90297
-
Amy Huang authored
We used to only emit static const data members in CodeView as S_CONSTANTS when they were used; this patch makes it so they are always emitted. This changes CodeViewDebug.cpp to find the static const members from the class debug info instead of creating DIGlobalVariables in the IR whenever a static const data member is used. Bug: https://bugs.llvm.org/show_bug.cgi?id=47580 Differential Revision: https://reviews.llvm.org/D89072 This reverts commit 50461535.
-
Austin Kerbow authored
Reset the tracked emitted instructions when starting scheduling on a new region. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D90347
-
Mehdi Amini authored
See http://lists.llvm.org/pipermail/llvm-dev/2016-March/096529.html for context. Reviewed By: silvas, rengolin, echristo, dexonsmith, gribozavr2 Differential Revision: https://reviews.llvm.org/D89995
-
Christopher Di Bella authored
Checks to make sure that stdlib's (std::)free is being appropriately used. Presently checks for the following misuses: - free(&stack_object) - free(stack_array) Differential Revision: https://reviews.llvm.org/D89988
-
Duncan P. N. Exon Smith authored
Differential Revision: https://reviews.llvm.org/D89835
-
Gaurav Jain authored
Differential Revision: https://reviews.llvm.org/D90327
-
Peter Collingbourne authored
There was a discrepancy in the gn build which is now fixed. Differential Revision: https://reviews.llvm.org/D89827
-