- May 18, 2021
-
-
Arthur Eubanks authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D102533
-
Adam Nemet authored
For column-major this is: A * B^t whereas for row-major: A^t * B Differential Revision: https://reviews.llvm.org/D101762
-
Rob Suderman authored
Comment was poorly written. Changed to bail on contradictory information in the double round. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D102651
-
Med Ismail Bennani authored
This patch updates `SBCompileUnit::FindLineEntryIndex` to pass a valid `LineEntry` pointer to `CompileUnit::FindLineEntry`. This caused `LineTable::FindLineEntryIndexByFileIndexImpl` to return its `best_match` initial value (UINT32_MAX). rdar://78115426 Differential Revision: https://reviews.llvm.org/D102658 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Nico Weber authored
`match()` can only return for non-empty vectors, but at least in non-LTO builds that isn't clear to the compiler. Help it out. This is a minor but measurable speedup on my machine (but less than what we might've lost in https://reviews.llvm.org/D100818#2764272 -- bot note higher N on this measurement here, so higher confidence here): % ministat at_main at_branch x at_main + at_branch N Min Max Median Avg Stddev x 30 3.9243979 4.0395119 3.987375 3.9826236 0.027567796 + 30 3.8495831 4.0009291 3.931325 3.9347135 0.037832878 Difference at 95.0% confidence -0.0479101 +/- 0.0171102 -1.20298% +/- 0.429622% (Student's t, pooled s = 0.0331007) No behavior change. Eventually we should apply these lists at symbol parse time instead of every time shouldExportSymbol() though :) Differential Revision: https://reviews.llvm.org/D102655
-
Philip Reames authored
Resubmit after fixing test/Transforms/LoopVectorize/ARM/mve-gather-scatter-tailpred.ll Previous commit message... This is a resubmit of 3e5ce4 (which was reverted by 7fe41ac3). The original commit caused a PPC build bot failure we never really got to the bottom of. I can't reproduce the issue, and the bot owner was non-responsive. In the meantime, we stumbled across an issue which seems possibly related, and worked around a latent bug in 80e80250. My best guess is that the original patch exposed that latent issue at higher frequency, but it really is just a guess. Original commit message follows... If we know that the scalar epilogue is required to run, modify the CFG to end the middle block with an unconditional branch to scalar preheader. This is instead of a conditional branch to either the preheader or the exit block. The motivation to do this is to support multiple exit blocks. Specifically, the current structure forces us to identify immediate dominators and *which* exit block to branch from in the middle terminator. For the multiple exit case - where we know require scalar will hold - these questions are ill formed. This is the last change needed to support multiple exit loops, but since the diffs are already large enough, I'm going to land this, and then enable separately. You can think of this as being NFCIish prep work, but the changes are a bit too involved for me to feel comfortable tagging the review that way. Differential Revision: https://reviews.llvm.org/D94892
-
Stanislav Mekhanoshin authored
This is already how it is handled for global and flat atomics. Differential Revision: https://reviews.llvm.org/D102366
-
Philip Reames authored
Revert "[LV] Unconditionally branch from middle to scalar preheader if the scalar loop must execute" This reverts commit c23ce54b. I apparently missed some newly added non-x86 tests.
-
Philip Reames authored
This is a resubmit of 3e5ce4 (which was reverted by 7fe41ac3). The original commit caused a PPC build bot failure we never really got to the bottom of. I can't reproduce the issue, and the bot owner was non-responsive. In the meantime, we stumbled across an issue which seems possibly related, and worked around a latent bug in 80e80250. My best guess is that the original patch exposed that latent issue at higher frequency, but it really is just a guess. Original commit message follows... If we know that the scalar epilogue is required to run, modify the CFG to end the middle block with an unconditional branch to scalar preheader. This is instead of a conditional branch to either the preheader or the exit block. The motivation to do this is to support multiple exit blocks. Specifically, the current structure forces us to identify immediate dominators and *which* exit block to branch from in the middle terminator. For the multiple exit case - where we know require scalar will hold - these questions are ill formed. This is the last change needed to support multiple exit loops, but since the diffs are already large enough, I'm going to land this, and then enable separately. You can think of this as being NFCIish prep work, but the changes are a bit too involved for me to feel comfortable tagging the review that way. Differential Revision: https://reviews.llvm.org/D94892
-
Ben Shi authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D102625
-
Ben Shi authored
Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D102547
-
Jim Ingham authored
This reverts commit bd5751f3. This patch series is causing us to every so often miss switching the state from eStateRunning to eStateStopped when we get the stop packet from the debug server. Reverting till I can figure out how that could be happening.
-
Scott Linder authored
Similar versions of these already exist, this effectively just just factors them out into STLExtras. I plan to use these in future patches. Differential Revision: https://reviews.llvm.org/D100672
-
Scott Linder authored
Differential Revision: https://reviews.llvm.org/D100671
-
Eli Friedman authored
The implementation just extends the vector to a larger element type, and extracts from that. Not fancy, but generates reasonable code. There was discussion in the review of doing the promotion in target-independent code, but I'm sticking with this to avoid making LegalizeDAG infrastructure more complicated. Differential Revision: https://reviews.llvm.org/D87651
-
Philip Reames authored
Recommitting after fixing a bug found post commit. Amusingly, try 1 had been correct, and by reverting to incorporate last minute review feedback, I introduce the bug. Oops. :) The problem was that recursively deleting an instruction can delete instructions beyond the current iterator (via a dead phi), thus invalidating iteration. Test case added in LoopUnroll/dce.ll to cover this case. LoopUnroll does a limited DCE pass after unrolling, but if you have a chain of dead instructions, it only deletes the last one. Improve the code to recursively delete all trivially dead instructions. Differential Revision: https://reviews.llvm.org/D102511
-
Arthur Eubanks authored
-
Heejin Ahn authored
WebAssemblyDebugValueManager class currently does not handle DBG_VALUE_LIST instructions correctly for two reasons, which are explained in https://bugs.llvm.org/show_bug.cgi?id=50361. This effectively nullifies DBG_VALUE_LISTs in WebAssemblyDebugValueManager so that the info will appear as "optimized out" in debuggers but still be at least correct in the meantime. Reviewed By: dschuff, jmorse Differential Revision: https://reviews.llvm.org/D102589
-
River Riddle authored
This pass isn't defined in the Transforms/ library anymore.
-
Jinsong Ji authored
The tests of fdebug-compilation-dir and -ffile-compilation-dir for `-x assembler` are assuming integrated-as. If the platform set the no-itegrated-as by default (eg: AIX for now), then this test will fail. Add the -integrated-as to aviod relying on the platform defaults. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D102647
-
Eli Friedman authored
I wouldn't recommend writing code like the testcase; a function parameter isn't atomic, so using an atomic type doesn't really make sense. But it's valid, so clang shouldn't crash on it. The code was assuming hasAggregateEvaluationKind(Ty) implies Ty is a RecordType, which isn't true. Just use isRecordType() instead. Differential Revision: https://reviews.llvm.org/D102015
-
Markus Böck authored
Besides -Bdynamic and -Bstatic, ld documents additional aliases for both of these options. Instead of -Bstatic, one may write -dn, -non_shared or -static. Instead of -Bdynamic one may write -dy or -call_shared. Source: https://sourceware.org/binutils/docs-2.36/ld/Options.html This patch adds those aliases to the MinGW driver of lld for the sake of ld compatibility. Encountered this case while compiling a static Qt 6.1 distribution and got build failures as -static was passed directly to the linker, instead of through the compiler driver. Differential Revision: https://reviews.llvm.org/D102637
-
Dave Lee authored
Document how to complete command line suggestions provided by `show-autosuggestion`. Differential Revision: https://reviews.llvm.org/D102544
-
Mitch Phillips authored
This reverts commit 747e5cfb. Reason: New frame layout broke the sanitizer unwinder. Not clear why, but seems like some of the changes aren't always guarded by Swyft checks. See https://reviews.llvm.org/rG747e5cfb9f5d944b47fe014925b0d5dc2fda74d7 for more information.
-
Vitaly Buka authored
-
Arthur Eubanks authored
This reverts commit 14dfb383. More false positives, see D100581.
-
LLVM GN Syncbot authored
-
Sanjay Patel authored
This is one of the folds requested in: https://llvm.org/PR39480 https://alive2.llvm.org/ce/z/NczU3V Note - this uses the normal FMF propagation logic (flags transfer from the final value to new/intermediate ops). It's not clear if this matches what Alive2 implements, so we may want to adjust one or the other.
-
Sanjay Patel authored
-
Nick Desaulniers authored
Follow up to D88631 but for aarch64; the Linux kernel uses the command line flags: 1. -mstack-protector-guard=sysreg 2. -mstack-protector-guard-reg=sp_el0 3. -mstack-protector-guard-offset=0 to use the system register sp_el0 for the stack canary, enabling the kernel to have a unique stack canary per task (like a thread, but not limited to userspace as the kernel can preempt itself). Address pr/47341 for aarch64. Fixes: https://github.com/ClangBuiltLinux/linux/issues/289 Signed-off-by:
Nick Desaulniers <ndesaulniers@google.com> Reviewed By: xiangzhangllvm, DavidSpickett, dmgreen Differential Revision: https://reviews.llvm.org/D100919
-
Peter Collingbourne authored
The LAM mode is currently untested by check-hwasan, so we only need to build the runtime in aliasing mode. Because LAM mode will always need to be conditional (because only certain hardware will support it) we can always just disable the LAM lit tests if it ever starts being tested.
-
Jacques Pienaar authored
- Enables inferring return type for ConstShape, takes into account valid return types; - The compatible return type function could be reused, leaving that for next use refactoring; Differential Revision: https://reviews.llvm.org/D102182
-
Mats Larsen authored
This patch contains the bare minimum to run the new Pass Manager from the LLVM-C APIs. It does not feature PGOOptions, PassPlugins or Debugify in its current state. Bugzilla: PR48499 Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D102136
-
Aart Bik authored
The experimental flag for "inplace" bufferization in the sparse compiler can be replaced with the new inplace attribute. This gives a uniform way of expressing the more efficient way of bufferization. Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D102538
-
Nico Weber authored
Has the effect that `__mh_execute_header` stays in the symbol table of outputs even after running `strip` on the output. I don't know if that's important for anything -- my motivation for the patch is just is to make the output more similar to ld64. (Corresponds to symbolTableInAndNeverStrip in ld64.) Differential Revision: https://reviews.llvm.org/D102619
-
Chris Lattner authored
Differential Revision: https://reviews.llvm.org/D102636
-
Abbas Sabra authored
MSVC has a `try-except` statement. This statement could containt a `__leave` keyword, which is similar to `goto` to the end of the try block. The semantic of this keyword is not implemented. We should at least parse such code without crashing. https://docs.microsoft.com/en-us/cpp/cpp/try-except-statement?view=msvc-160 Patch By: AbbasSabra! Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D102280
-
Michael Benfield authored
These are intended to mimic warnings available in gcc. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D100581
-
Nico Weber authored
This reverts commit cd220a06. Doesn't build.
-
Jim Ingham authored
Differential Revision: https://reviews.llvm.org/D102562
-