- Nov 01, 2021
-
-
Sanjay Patel authored
The extra uses are needed to prevent intermediate folds. Without that, there would be no coverage currently. The vector tests show an artificial limitation in the code.
-
Dmitry Makogon authored
This is a fix for tests added by 96591a14. A function which was called in tests wasn't marked as 'readonly', and the GVN performed PRE for the loads, but they were supposed to be non-local. So added 'readonly' to the called function.
-
Mubashar Ahmad authored
Enables support for Cortex-X2 cores. Differential Revision: https://reviews.llvm.org/D112459
-
Simon Pilgrim authored
Similar to AVX1, the cost of splitting/merging 512-bit -> 256-bits vectors for arithmetic operations are typically hidden due to different used ports etc.
-
gbreynoo authored
Differential Revision: https://reviews.llvm.org/D112151
-
Simon Pilgrim authored
The VINSERTF128 instruction is often much quicker, and never slower, than the more general VPERM2F128 instruction, so we should try to use that in more circumstances. This requires a fallback to a commuted VPERM2F128 for the case where we need to fold the 256-bit vector source instead of the 128-bit subvector source. There is one interesting side effect - DAGCombine's narrowExtractedVectorLoad combine gets called in a number of locations, this often creates an extracted subvector load without regard to other uses of the original wider load. I'm expecting AVX cpus to be capable of merging such aliased loads, but I do wonder whether narrowExtractedVectorLoad's call to X86TargetLowering::shouldReduceLoadWidth needs to be altered to check for more partial uses? Noticed while investigating the quality of interleaved load/store codegen. Differential Revision: https://reviews.llvm.org/D111960
-
David Sherwood authored
We never expect the runtime VF to be negative so we should use the uitofp instruction instead of sitofp. Differential revision: https://reviews.llvm.org/D112610
-
Diana Picus authored
Implement the second entry point for GET_ENVIRONMENT_VARIABLE. Reuse existing bits and pieces wherever possible. This patch also increases CFI_* error codes in order to avoid conflicts. GET_ENVIRONMENT_VARIABLE is required to return a status of 1 if an environment variable does not exist and 2 if environment variables are not supported. However, if we add status codes for that they will conflict with CFI_ERROR_BASE_ADDR_NULL and CFI_ERROR_BASE_ADDR_NOT_NULL, which are also 1 and 2 at the moment. We therefore move all CFI error codes up (an arbitrary) 10 spots to make room. Hopefully this isn't a problem, since we weren't matching the CFI error codes that gfortran uses anyway. It may still be an issue if any other runtime functions will need to return a status of 1 or 2, but we should probably deal with that when/if it occurs. Differential Revision: https://reviews.llvm.org/D112698
-
Roman Lebedev authored
[CVP] Canonicalize signed relational comparisons of scalar integers to unsigned comparison predicates Now that the reasoning was added to ConstantRange in D90924, this replicates IndVars variant of this transform (D111836) in a pass that uses value range reasoning for the transform. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D112895
-
Esme-Yi authored
with tests generated by yaml2obj. Summary: Because yaml2obj supports basic transforming for XCOFF, some of the binary inputs used in the tests of llvm-readobj can be replaced with yaml files. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D111699 -
Matthias Springer authored
This makes the class usable with types that do not provide their own operator<. Update MLIR Linalg ComprehensiveBufferize to take advantage of the new template param. Differential Revision: https://reviews.llvm.org/D112052
-
Jun Ma authored
when Taildup hit loop with multiple latches like: // 1 -> 2 <-> 3 | // \ <-> 4 | // \ <-> 5 | // \---> rest | it may transform this loop into multiple loops by duplicate loop header. However, this change may has little benefit while makes cfg much complex. In some uncommon cases, it causes large compile time regression (offered by @alexfh in D106056). This patch disable tail-duplicate of such cases. TestPlan: check-llvm Differential Revision: https://reviews.llvm.org/D110613
-
Jun Ma authored
-
David Carlier authored
-
Kazu Hirata authored
-
Mogball authored
Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D112828
-
Max Kazantsev authored
This function is used at least in 2 places, to it makes sense to make it separate. Differential Revision: https://reviews.llvm.org/D112516 Reviewed By: reames
-
Chen Zheng authored
-
Fangrui Song authored
-
Itay Bookstein authored
Verify that the resolver exists, that it is a defined Function, and that its return type matches the ifunc's type. Add corresponding check to BitcodeReader, change clang to emit the correct type, and fix tests to comply. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D112349
-
Zi Xuan Wu authored
Ooops. It constructs codegen infra and provide only basic code to generate first add instruction successfully. Differential Revision: https://reviews.llvm.org/D112206
-
Shoaib Meenai authored
`fatal` should only be used for malformed inputs according to ErrorHandler.h; `error` is more appropriate for missing arguments, accompanied by a check to bail out early in case of the error. Some tests need to be adjusted accordingly. Makes `lld/test/MachO/arch.s` pass with `LLD_IN_TEST=2`. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D112879
-
Shoaib Meenai authored
Otherwise we'll hit a spurious assert failure when we reset and then reinitialize TimeProfiler on the same thread, as can happen when e.g. using LLD as a library and running it multiple times in the same process. Makes `lld/test/MachO/time-trace.s` pass with `LLD_IN_TEST=2`, which runs the linker twice in the same process and exposed the issue. Reviewed By: MaskRay, mehdi_amini Differential Revision: https://reviews.llvm.org/D112880
-
Shoaib Meenai authored
We need to reset global state between runs, similar to the other ports. There's some file-static state which needs to be reset as well and we need to add some new helpers for that. With this change, most LLD Mach-O tests pass with `LLD_IN_TEST=2` (which runs the linker twice on each test). Some tests will be fixed by the remainder of this stack, and the rest are fundamentally incompatible with that mode (e.g. they intentionally throw fatal errors). Fixes PR52070. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D112878
-
Nico Weber authored
It's not used for anything yet, but we now accept `/pdbpagesize:4096` (the default behavior) and we give arguably more useful diagnostics for other values. It's plumbed through to the MSF layer, so just uncommenting out the bit in DriverUtils.cpp that rejects args other than 4096 is enough to try other values. Differential Revision: https://reviews.llvm.org/D112871
-
Fangrui Song authored
[ELF] Replace "symbol '...' has no type" diagnostic with "relocation ... cannot be used against symbol '...'" The "symbol 'foo' has no type" diagnostic tries to inform that copy relocation/canonical PLT entry cannot be used, but the diagnostic is often incorrect and confusing.
-
Roman Lebedev authored
For certain combination of LHS and RHS constant ranges, the signedness of the relational comparison predicate is irrelevant. This implements complete and precise model for all predicates, as confirmed by the brute-force tests. I'm not sure if there are some more cases that we can handle here. In a follow-up, CVP will make use of this. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D90924
-
Fangrui Song authored
-
Vitaly Buka authored
This is NOOP in x86_64. On arch64 it avoids Data Memory Barrier with visible improvements on micro benchmarks. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D112391
-
Vitaly Buka authored
To make pid initialized for Msan. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D112784
-
Fangrui Song authored
The hint does not pull its weight: * adding -Wl,-z,notext often won't work (relocation types other than `symbolRel`, e.g. `R_AARCH64_LDST32_ABS_LO12_NC`) * for pure (no assembly) C/C++ projects, the "-fPIC" hint is sufficient
-
Lang Hames authored
-
Fangrui Song authored
-
Lang Hames authored
MachOPlatform used to make an EPC-call (registerObjectSections) to register the eh-frame and thread-data sections for each linked object with the ORC runtime. Now that JITLinkMemoryManager supports allocation actions we can use these instead of an EPC call. This saves us one EPC-call per object linked, and manages registration/deregistration in the executor, rather than the controller process. In the future we may use this to allow JIT'd code in the executor to outlive the controller object while still being able to be cleanly destroyed. Since the code for allocation actions must be available when the actions are run, and since the eh-frame registration code lives in the ORC runtime itself, this change required that MachO eh-frame support be split out of macho_platform.cpp and into its own macho_ehframe_registration.cpp file that has no other dependencies. During bootstrap we start by forcing emission of macho_ehframe_registration.cpp so that eh-frame registration is guaranteed to be available for the rest of the bootstrap process. Then we load the rest of the MachO-platform runtime support, erroring out if there is any attempt to use TLVs. Once the bootstrap process is complete all subsequent code can use all features.
-
Lang Hames authored
Alloc actions should return a CWrapperFunctionResult. JITLink does not have access to this type yet, due to library layering issues, so add a cut-down version with a fixme.
-
Craig Topper authored
Fix LegalizeVectorOps to not try shuffle or unrolling expansions for scalable vectors. Differential Revision: https://reviews.llvm.org/D112236
-
- Oct 31, 2021
-
-
Kazu Hirata authored
-
Kazu Hirata authored
-