- Sep 04, 2022
-
-
Fangrui Song authored
They lead to -Wunused-command-line-argument and should be written as -Ttext= instead, but the driver options end with a space. -Ttext=0 can be accepted by the JoinedOrSeparate -T, so the JoinedOrSeparate -Ttext/etc are unneeded.
-
Fangrui Song authored
They are error-prone as they do not end with `=`. Note: for driver -isystem/etc, we have to support the Joined form.
-
Simon Pilgrim authored
Based off the numbers from AMD SoG + Agner - vXi32 are both half-rate, and znver1 double-pumps the v8i32 op We should have caught this earlier as many Intel models have half-rate pmulld already :-(
-
Simon Pilgrim authored
This was achieved using the 'cost-tables vs llvm-mca' script D103695
-
Dave Lee authored
Fixes broken support for: `target.module[re.compile("libFoo")]` There were two issues: 1. The type check was expecting `re.SRE_Pattern` 2. The expression to search the module path had a typo In the first case, `re.SRE_Pattern` does not exist in Python 3, and is replaced with `re.Pattern`. While editing this code, I changed the type checks to us `isinstance`, which is the conventional way of type checking. From the docs on `type()`: > The `isinstance()` built-in function is recommended for testing the type of an object, because it takes subclasses into account. Differential Revision: https://reviews.llvm.org/D133130
-
- Sep 03, 2022
-
-
yronglin authored
Avoid __builtin_assume_aligned crash when the 1st arg is array type(or string literal). Open issue: https://github.com/llvm/llvm-project/issues/57169 Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D133202
-
Simon Pilgrim authored
This was achieved with an updated version of the 'cost-tables vs llvm-mca' script D103695 As we're using 'typical' worst case values, not all cost entries come from a single CPU - e.g. the latency/throughput from haswell but the size-latency(uops) from zen1/alderlake-e due to 'double pumping' As the uop count (used for TCK_SizeAndLatency) for divss/divps is typically so low, we need to override isExpensiveToSpeculativelyExecute to ensure we keep fdiv calls behind branches - although for some very recent cpu targets it might not be necessary any more and could be relaxed.
-
Sanjay Patel authored
Preliminary refactoring for planned enhancement in D133198.
-
Simon Pilgrim authored
Matches znver1/2 numbers from AMD SoG + Agner - no additional uops for folded instructions and znver1 double pumps 256-bit vectors Matches skylake/icelake throughput numbers from Intel AoM + Agner/instlatx64 Noticed while adding fdiv CostKinds support
-
Christian Sigg authored
Replace the following config attributes with `mlir_lib_dir`: - `mlir_runner_utils_dir` - `linalg_test_lib_dir` - `spirv_wrapper_library_dir` - `vulkan_wrapper_library_dir` - `mlir_integration_test_dir` I'm going to clean up substitutions in separate changes. Reviewed By: aartbik, mehdi_amini Differential Revision: https://reviews.llvm.org/D133217
-
Sanjay Patel authored
~(A & ?) | (A ^ B) --> ~((A & ?) & B) https://alive2.llvm.org/ce/z/mxex6V This is similar to 9d218b61 where we peeked through another logic op to find a common operand.
-
Sanjay Patel authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
These were affected by D131825 (and reported on Issue #57149) - adding the verification will help ensure that we don't hit this again on builds with EXPENSIVE_CHECKS enabled
-
Simon Pilgrim authored
[DAG] canCreateUndefOrPoison - add freeze(insert_subvector(x,y,c)) -> insert_subvector(freeze(x),freeze(y),c) support We already have plenty of assertions in place to ensure that the insertion index is constant and inrange
-
Simon Pilgrim authored
[X86] Add test showing failure to fold freeze(insert_subvector(x,y,c)) -> insert_subvector(freeze(x),freeze(y),c) If at least one of x and y are known never poison.
-
Simon Pilgrim authored
CGP uses a raw `getInstructionCost(I, TargetTransformInfo::TCK_SizeAndLatency) >= TCC_Expensive` check to see if its better to move an expensive instruction used in a select behind a branch instead. This is causing issues with upcoming improvements to TCK_SizeAndLatency costs on X86 as we need to use TCK_SizeAndLatency as an uop count (so its compatible with various target-specific buffer sizes - see D132288), but we can have instructions that have a low TCK_SizeAndLatency value but should still be treated as 'expensive' (FDIV for example) - by adding a isExpensiveToSpeculativelyExecute wrapper we can keep the current behaviour but still add an x86 override in a future patch when the cost tables are updated to compensate.
-
Igor Zhukov authored
Reviewed By: mordante, #libc Differential Revision: https://reviews.llvm.org/D131315
-
Mark de Wever authored
-
Mark de Wever authored
The code was for backwards compatibility with code no longer present in format.
-
Mark de Wever authored
GCC-11 isn't supported in libc++ so remove UNSUPPORTED directives.
-
Simon Pilgrim authored
Matches numbers from AMD SoG + Agner - should always be on FPU Pipes 0+1, no additional uops for folded instructions and znver1 double pumps 256-bit vectors and is always latency = 4cy for f64 multiplies Noticed while adding fmul CostKinds support to the x86 cost models in rG0735200e and znver1 wasn't being flagged as requiring 2uop for 256-bit vectors
-
Simon Pilgrim authored
This was achieved with an updated version of the 'cost-tables vs llvm-mca' script D103695 As we're using 'typical' worst case values, not all cost entries come from a single CPU - e.g. the latency/throughput from haswell but the size-latency(uops) from zen1/alderlake-e due to 'double pumping'
-
Simon Pilgrim authored
We only need the double costs for SSE1 fallback
-
Junduo Dong authored
This reverts commit 38941da0.
-
Junduo Dong authored
This reverts commit 39221ad5.
-
Alexey Lapshin authored
Current implementation of registerModuleReference() function not only "registers" module reference, but also clones referenced module (inside loadClangModule()). That may lead to cloning the module with incorrect options (registerModuleReference() examines module references and additionally accumulates MaxDwarfVersion and accel tables info). Since accumulated options may differ from the current values, it is incorrect to clone modules before options are fully accumulated. This patch separates "cloning" code from "registering" code. So, that accumulating option is done in the "registering stage" and "cloning" is done after all modules are registered and options accumulated. It also adds a callback for loaded compile units which can be used for D132755 and D132371(to allow doing options accumulation outside of DWARFLinker). Differential Revision: https://reviews.llvm.org/D133047
-
Mark de Wever authored
It seems there was another file with the same issue, which didn't show up initially.
-
Mark de Wever authored
As discussed in D132284 they will be moved to the end. Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D133212
-
Mark de Wever authored
-
Benjamin Kramer authored
-
Christian Sigg authored
This resubmits commit 0816b629, reverted in commit 328bbab5, but without removing the config.target_triple. Lit checks UNSUPPORTED tags in the input against the config.target_triple (https://llvm.org/docs/TestingGuide.html#constraining-test-execution). The original commit made the following bots start failing, because unsupported tests were no longer skipped: - s390x: https://lab.llvm.org/buildbot/#/builders/199/builds/9247 - Windows: https://lab.llvm.org/buildbot/#/builders/13/builds/25321 - Sanitizer: https://lab.llvm.org/buildbot/#/builders/5/builds/27187
-
owenca authored
When the opening brace of a control statement block is wrapped, we must check the previous line to determine whether to try to merge the block. Fixes #38639. Fixes #48007. Fixes #57421. Differential Revision: https://reviews.llvm.org/D133093
-
Lang Hames authored
We want to move functionality from the LLVM ORCTargetProcess library into the ORC runtime, and this will mean implementing remote-executor testing tools (like llvm-jitlink-executor and lli-child-target) in the ORC runtime. This patch refactors the ORC runtime build system to introduce an add_orc_tool function that can be used to add new test tools. The code is modeled on existing functions for adding unit tests. A placeholder orc-rt-executor tool and test are added to verify that the config changes behave as expected. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D133084
-
Junduo Dong authored
One of the test cases in that test is designed to test the compiling jobs with a linking stage, but the PS4/PS5/Hexagon platform requires an external linker that isn't present. So this test do not support the "PS4/PS5/Hexagon".
-
LLVM GN Syncbot authored
-
Vitaly Buka authored
Breaks buildbots. This reverts commit 30adaa73.
-
LLVM GN Syncbot authored
-
Igor Zhukov authored
Co-authored-by:
A. Jiang <de34@live.cn> Reviewed By: philnik, huixie90, #libc Differential Revision: https://reviews.llvm.org/D132327
-
Richard Smith authored
-fmodules-local-submodule-visibility and -fdelayed-template-parsing don't work properly together because the template is parsed in the visibility context of the wrong module.
-