- Jan 13, 2023
-
-
Yingchi Long authored
If the subtarget does not support VInstructions, expand vp intrinscs to scalar instructions. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D139706
-
Ben Shi authored
Fixes https://github.com/llvm/llvm-project/issues/58878 Reviewed By: aykevl, Miss_Grape Differential Revision: https://reviews.llvm.org/D141589
-
Vitaly Buka authored
-
Joshua Cao authored
Before this, LoopReroll would fail an assertion, falsely assuming that there can only possibly a single loop control only induction variable. For example: ``` %a = phi i16 [ %dec2, %for.body ], [ 0, %entry ] %b = phi i16 [ %dec1, %for.body ], [ 0, %entry ] %a.next = add nsw i16 %1, -1 %b.next = add nsw i16 %0, -1 %add = add nsw i16 %a, %b ; ... rerollable code %cmp.not = icmp eq i16 -10, %add br i1 %cmp.not, label %exit, label %loop ``` Both %a and %b are valid loop control only induction vars Additionally, some NFC changes to remove unnecessary isa<PHINode> check Updated complex_reroll checks Differential Revision: https://reviews.llvm.org/D141109
-
Noah Goldstein authored
Previous pattern was omitting ops in sequence which just increases the latency (to 3c, same as imul!) i.e: `(add/sub (add/sub (shl x, N), x), x)` Better is to compute 2x indepedently so x << N for better ULP i.e: `(add/sub (shl x, N), (add x, x))` Reviewed By: pengfei, RKSimon Differential Revision: https://reviews.llvm.org/D141113
-
Noah Goldstein authored
Shift count is masked by hardware so these peepholes just extend common patterns for NOT to the lower bits of shift count. As well (32/64 ^ X) is masked off by the shift so can be safely ignored. Reviewed By: pengfei, lebedev.ri Differential Revision: https://reviews.llvm.org/D140087
-
Matt Arsenault authored
-
LiDongjin authored
[RISCV] Change the return type of getStreamer() to support the use of overloading and other functions in RISCVELFStreamer Move the declaration of RISCVELFStreamer from RISCVELFStreamer.cpp to RISCVELFStreamer.h. Change the return type of getStreamer() to support the use of overloading and other functions in RISCVELFStreamer. Differential Revision: https://reviews.llvm.org/D138500
-
Med Ismail Bennani authored
This patch should fix an nondeterministic error in TestStackCoreScriptedProcess. In order to test both the multithreading capability and shared library loading in Scripted Processes, the test would create multiple threads that would take the same variable as a reference. The first thread would alter the value and the second thread would monitor the value until it gets altered. This assumed a certain ordering regarding the `std::thread` spawning, however the ordering was not always guaranteed at runtime. To fix that, the test now makes use of a `std::condition_variable` shared between the each thread. On the former, it will notify the other thread when the variable gets initialized or updated and on the latter, it will wait until the variable it receives a new notification. This should fix the data racing issue while preserving the testing coverage. rdar://98678134 Differential Revision: https://reviews.llvm.org/D139484 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This is a follow-up patch to 6f7835f309b9. As explained previously, when running from an IDE, it can happen that the IDE imports some lldb scripts by itself. If the user also tries to import these commands, lldb will show the following message: ``` error: cannot add command: user command exists and force replace not set ``` This message is confusing to the user, because it suggests that the command import failed and that the execution should stop. However, in this case, lldb will continue the execution with the command added previously by the user. To prevent that, this patch updates every first-party lldb-packaged custom commands to override commands that were pre-imported in lldb. Differential Revision: https://reviews.llvm.org/D140293 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
When using interactive crashlog from an IDE, it can happen that the user already have the `command script import lldb.macosx.crashlog` command on their `lldbinit` file. That leads to showing some message: ``` error: cannot add command: user command exists and force replace not set error: cannot add command: user command exists and force replace not set ``` This leads to confusion because the crashlog symbolication continues and succeeds even after these errors. To address that, the crashlog commands get overridden everytime the script get re-imported. rdar://103403943 Differential Revision: https://reviews.llvm.org/D140113 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch enhances queue support in Scripted Processes. Scripted Threads could already report their queue name if they had one, but this information was only surfaced when getting the process and thread status. However, no queue was create and added to the scripted process queue list. This patch improves that by creating a queue from the scripted thread queue name. For now, it uses an invalid queue id, since the scripted thread doesn't expose this capability yet, but this could easily be supported if the queue id information is available. rdar://98844004 Differential Revision: https://reviews.llvm.org/D139853 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch should fix an undefined behaviour that's happening when parsing a crash report from an IDE. In the previous implementation, the CrashLogParser base class would use the `__new__` static class method to create the right parser instance depending on the crash report type. For some reasons, the derived parser initializer wouldn't be called when running the command from an IDE, so this patch refactors the CrashLogParser code to replace the use of the `__new__` method with a factory `create` static method. rdar://100527640 Differential Revision: https://reviews.llvm.org/D139951 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Owen Anderson authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D141564
-
Nico Weber authored
Ran: git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format -
Joseph Huber authored
Summary: This patch adjusts the test to correctly search for the temp files created after a previous patch changed the name. This wasn't caught because it still technically worked.
-
v1nh1shungry authored
Enable the existing tweak `ExpandAutoType` to expand `decltype(expr)`, e.g. ``` decltype(0) i; ``` will expand to ``` int i; ``` Therefore, rename the tweak `ExpandAutoType` to `ExpandDeducedType`. This patch also fixes some nits, * avoid replacing reference to a function * avoid replacing array types and reference to an array Fixes https://github.com/clangd/clangd/issues/1456 Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D141226
-
Hui Li authored
Add unit tests For EmulateInstructionLoongArch existing branch instruction. Add 19 test cases in total. Without this patch: ``` $ ninja check-lldb-unit [0/1] Running lldb unit test suite Testing Time: 10.55s Passed: 1025 ``` With this patch: ``` $ ninja check-lldb-unit [0/1] Running lldb unit test suite Testing Time: 10.45s Passed: 1044 ``` Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D140386
-
Hui Li authored
This adds the jump slot mapping for LoongArch. This is a simple change that ensures lldb running properly. Note that this problem was found only when CMake variables "DLLVM_ENABLE_ASSERTIONS=ON" is selected. Without this patch, ``` $ build/bin/lldb test ../ELFHeader::GetRelocationJumpSlotType() const: Assertion `false && "architecture not supported"' fail ``` With this patch ``` $ build/bin/lldb test (lldb) target create "test" Current executable set to '../test' (loongarch64). ``` Reviewed By: SixWeining, DavidSpickett Differential Revision: https://reviews.llvm.org/D141245
-
Vitaly Buka authored
Breaks ubsan build, details in D141188. This reverts commit 3ac2b3a4.
-
Tony Tye authored
- Clarify CFI rules in heterogeneous DWARF extensions - Added DWARF source language memory spaces. - Added DWARF architecture address spaces. - Other minor corrections. Reviewed By: scott.linder Differential Revision: https://reviews.llvm.org/D141548
-
Ben Shi authored
The test 'Preprocessor/predefined-arch-macros.c' contains many target tests than 'amdgpu'. If clang is built without 'amdgpu', then failures in other target tests will not be reported. Reviewed By: aaron.ballman, MaskRay Differential Revision: https://reviews.llvm.org/D141647
-
Kirill Stoimenov authored
Main goal is to remove thread registry dependency from the interface because HWASAN is using its own code to manage threads. Reviewed By: vitalybuka, kstoimenov Differential Revision: https://reviews.llvm.org/D140039
-
Joseph Huber authored
Summary: `clang` is called `clang.exe` on windows, we need to glob the text inbetween.
-
Richard Smith authored
The result of recomputing the type of an LValue may be different from the type we find serialized with that LValue, either due to differing type sugar in a redeclaration, or more significantly due to a later declaration of a variable having an array bound that a prior declaration did not have. Therefore this assertion was attempting to verify a property that isn't necessarily true.
-
Nico Weber authored
Adds support for the following flags: * --thinlto-index-only, --thinlto-index-only= * --thinlto-emit-imports-files * --thinlto-emit-index-files * --thinlto-object-suffix-replace= * --thinlto-prefix-replace= See https://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html for some words on --thinlto-index-only. I don't really need the other flags, but they were in the vicinity and _someone_ might need them, so I figured I'd add them too. `-object_path_lto` now sets `c.AlwaysEmitRegularLTOObj` as in the other ports, which means it can now only point to a filename for non-thin LTO. I think that was the intent of D129705 anyways, so update test/MachO/lto-object-path.ll to use a non-thin bitcode file for that test. Differential Revision: https://reviews.llvm.org/D138451
-
Teresa Johnson authored
Track min/max/avg access density (accesses per byte and accesses per byte per lifetime second) metrics directly during profiling. This allows more accurate use of these metrics in profile analysis and use, instead of trying to compute them from already aggregated data in the profile. This required regenerating some of the raw profile and executable inputs for a few tests. While here, make the llvm-profdata memprof tests more resilient to differences in things like memory mapping, timestamps and cpu ids to make future test updates easier. Differential Revision: https://reviews.llvm.org/D141558
-
Yeting Kuo authored
D111904 made RISC-V customized lower ISD::CTLZ_ZERO_UNDEF by converting to float and using the float result. The expected value of CTLZ with zero input is the element size of input type. Since the result of above method with zero input must be greater than the element size, for ISD::CTLZ, we could use the minimum of element size and the result of CTLZ_ZERO_UNDER with same input. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D141585
-
Vitaly Buka authored
Breaks bots. Also it's missing changes we discussed on review. This reverts commit f001e50f. This reverts commit 29241892.
-
eopXD authored
From: vint32m1_t vmerge_vvm_i32m1 (vbool32_t mask, vint32m1_t op1, vint32m1_t op2, size_t vl); vint32m1_t vcompress_vm_i32m1 (vbool32_t mask, vint32m1_t src, size_t vl); To: vint32m1_t vmerge_vvm_i32m1 (vint32m1_t op1, vint32m1_t op2, vbool32_t selector, size_t vl); vint32m1_t vcompress_vm_i32m1 (vint32m1_t src, vbool32_t selector, size_t vl); Address issues: riscv-non-isa/rvv-intrinsic-doc#140 riscv-non-isa/rvv-intrinsic-doc#167 Pull request: riscv-non-isa/rvv-intrinsic-doc#185 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D140686
-
Nico Weber authored
-
v1nh1shungry authored
Relevant issue: https://github.com/llvm/llvm-project/issues/59517 Currently this check will warn when the result is used in a `return` statement, e.g. ``` bool foobar() { std::vector<int> v; return v.empty(); // will get a warning here, which makes no sense IMO } ``` Reviewed By: cjdb, denik Differential Revision: https://reviews.llvm.org/D141107
-
Keith Smiley authored
This mirrors ld64's behavior. In many cases this likely still leads to a link failure but if you didn't actually use anything from the library it can be ignored. If you care about these invalid cases -fatal_warnings still upgrades it back to an error. Example: https://github.com/keith/ld64.lld/issues/3 Differential Revision: https://reviews.llvm.org/D141638
-
Alex Brachet authored
-
Xiang1 Zhang authored
Differential Revision: https://reviews.llvm.org/D141556 Reviewed By: lanza
-
Matt Arsenault authored
This looked like a plausibly correct out of tree patch. The changed testcases with the pragmas stripped out only use inbounds GEPs so I assume this is correct.
-
Mitch Phillips authored
This reverts commit 90a9beb7. Reason: Broke an internal build.
-
Mitch Phillips authored
This reverts commit 64138725. Parent change https://reviews.llvm.org/D140173 broke an internal build. I'll land this bit as part of the re-land for https://reviews.llvm.org/D140173.
-
Mitch Phillips authored
This reverts commit df87e62c. Parent change https://reviews.llvm.org/D140173 broke an internal build. I'll integrate this patch into the re-land for https://reviews.llvm.org/D140173.
-
Kirill Stoimenov authored
Main goal is to remove thread registry dependency from the interface because HWASAN is using its own code to manage threads. Reviewed By: vitalybuka, kstoimenov Differential Revision: https://reviews.llvm.org/D140039
-