- Jun 20, 2022
-
-
Alex Zinenko authored
This aligns the SCF dialect file layout with the majority of the dialects. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D128049
-
Daniil Dudkin authored
Instead of manually checking for procedure-like details in Symbol, defer it to IsProcedure function. Differential Revision: https://reviews.llvm.org/D127967
-
Balázs Kéri authored
Extend checker 'ErrnoModeling' with a state of 'errno' to indicate the importance of the 'errno' value and how it should be used. Add a new checker 'ErrnoChecker' that observes use of 'errno' and finds possible wrong uses, based on the "errno state". The "errno state" should be set (together with value of 'errno') by other checkers (that perform modeling of the given function) in the future. Currently only a test function can set this value. The new checker has no user-observable effect yet. Reviewed By: martong, steakhal Differential Revision: https://reviews.llvm.org/D122150
-
Marco Antognini authored
Instead of assuming there is an HTML file for each diagnostics, consider the HTML files only when they exist, individually of each other. After generating the reference data, running python /scripts/SATest.py build --projects simbody was resulting in this error: File "/scripts/CmpRuns.py", line 250, in read_single_file assert len(d['HTMLDiagnostics_files']) == 1 KeyError: 'HTMLDiagnostics_files' Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D126197 -
Marco Antognini authored
Solve build issues occurring when running `docker build`. Fix the version of cmake-data to solve the following issue: The following packages have unmet dependencies: cmake : Depends: cmake-data (= 3.20.5-0kitware1) but 3.23.1-0kitware1ubuntu18.04.1 is to be installed Install libjpeg to solve this issue when installing Python requirements: The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D126196
-
Simon Pilgrim authored
Similar to the existing (shl (srl x, c1), c2) fold Part of the work to fix the regressions in D77804 Differential Revision: https://reviews.llvm.org/D125836
-
Diana Picus authored
When linking a Fortran program, we need to add the runtime libraries to the command line. This is exactly what we do for Linux/Darwin, but the MSVC interface is slightly different (e.g. -libpath instead of -L). We also remove oldnames and libcmt, since they're not needed at the moment and they bring in more dependencies. We also pass `/subsystem:console` to the linker so it can figure out the right entry point. This is only needed for MSVC's `link.exe`. For LLD it is redundant but doesn't hurt. Differential Revision: https://reviews.llvm.org/D126291 Co-authored-by:
Markus Mützel <markus.muetzel@gmx.de>
-
Jay Foad authored
This is a temporary measure to avoid generating incorrect code until the compiler understands the new way that GFX11 encodes 16-bit operands in VOP instructions. Differential Revision: https://reviews.llvm.org/D128054
-
Adrian Kuegel authored
-
Lian Wang authored
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D127710
-
Stanislav Gatev authored
Extend flow condition in the body of a for loop. Differential Revision: https://reviews.llvm.org/D128060
-
chenglin.bi authored
-
Chenbing Zheng authored
Reviewed By: spatel, RKSimon Differential Revision: https://reviews.llvm.org/D127398
-
Craig Topper authored
-
Weining Lu authored
These operations include `sext`, `zext` and `trunc`. Reference: https://llvm.org/docs/LangRef.html#conversion-operations Differential Revision: https://reviews.llvm.org/D127204
-
Kazu Hirata authored
-
Weining Lu authored
Differential Revision: https://reviews.llvm.org/D127206
-
Weining Lu authored
Reference: https://llvm.org/docs/LangRef.html#bitwise-binary-operations https://llvm.org/docs/LangRef.html#other-operations The reason why other operations are implemented here is that some bitwise binary operations depend on them. For example, on loongarch32, `shl` over i64 data requires `select`. Differential Revision: https://reviews.llvm.org/D127203
-
Weining Lu authored
Reference: https://llvm.org/docs/LangRef.html#fneg-instruction Differential Revision: https://reviews.llvm.org/D127200
-
Weining Lu authored
These binary operations include sub/fadd/fsub/fmul/fdiv. Others ops like mul/udiv/sdiv/urem/srem would be added later since they depend on `shift` and `truncate` that have not been supported. Note `add` has been added in a previous patch. Reference: https://llvm.org/docs/LangRef.html#binary-operations Differential Revision: https://reviews.llvm.org/D127199
-
Nico Weber authored
This is all dead code that we forgot to delete in https://reviews.llvm.org/D114842 Differential Revision: https://reviews.llvm.org/D128147
-
Kazu Hirata authored
Since Optional<clang::FileEntryRef> uses a custom storage class, this patch adds value to MapEntryOptionalStorage.
-
Kazu Hirata authored
This patch switches to has_value within Optional. Since Optional<clang::FileEntryRef> uses custom storage class, this patch adds has_entry to MapEntryOptionalStorage.
-
lewuathe authored
Add conversion for complex.conj to libm call Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D127473
-
Maksim Panchenko authored
Add functionality to allow splitting code with C++ exceptions in shared libraries and PIEs. To overcome a limitation in exception ranges format, for functions with fragments spanning multiple sections, add trampoline landing pads in the same section as the corresponding throwing range. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D127936
-
Arthur Eubanks authored
The only place we modify the CFG is when calling removeUnreachableBlocks(), so insert a callback there which invalidates analyses for that function (or recomputes DT in the legacy PM). Small compile time wins across the board: https://llvm-compile-time-tracker.com/compare.php?from=f444ea8ce0aaaa5ec1a4129809389da15cc41396&to=698f41f4fc26cbf1006ed5d88e9d658edfc5b749&stat=instructions Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D128145
-
Craig Topper authored
The VT we want to shrink to may not be legal especially after type legalization. Fixes PR56110. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D128135
-
Nico Weber authored
-
Nico Weber authored
-
Nico Weber authored
Patch created by running: rg -l parallelForEachN | xargs sed -i '' -c 's/parallelForEachN/parallelFor/' No behavior change. Differential Revision: https://reviews.llvm.org/D128140
-
Siva Chandra Reddy authored
This reverts commit 2846c2bb. The reason for the disable is not relevant anymore.
-
Eric Gullufsen authored
(icmp slt (X & Y), 0) | (icmp sgt (X | Y), -1) -> (icmp sgt (X ^ Y), -1) (icmp slt (X | Y), 0) & (icmp sgt (X & Y), -1) -> (icmp slt (X ^ Y), 0) [[ https://alive2.llvm.org/ce/z/qXxEFP | alive2 example ]] [[ https://godbolt.org/z/aWf9c6j74 | godbolt ]] [[ https://godbolt.org/z/5Ydn5TehY | godbolt for inverted form ]] [[ https://alive2.llvm.org/ce/z/93AODr | alive2 for inverted form ]] [[ https://github.com/llvm/llvm-project/issues/55988 | issue #55988 ]] Differential Revision: https://reviews.llvm.org/D127903
-
Arthur Eubanks authored
The call graph has nothing to with function CFGs. Fixes a crash in a future change that exposes this bug.
-
Sanjay Patel authored
This extends a similar pattern from D125500 and D127754. If we know that operand 1 (RHS) of a subtract is itself a non-overflowing subtract from operand 0 (LHS), then the final/outer subtract is also non-overflowing: https://alive2.llvm.org/ce/z/Bqan8v InstCombine uses this analysis to trigger a narrowing optimization, so that is what the first changed test shows. The last test models a motivating case from issue #48013. In that example, we determine 'nuw' on the first sub from the urem, then we determine that the 2nd sub can be narrowed, and that leads to eliminating both subtracts. here are still several missing subtract narrowing optimizations demonstrated in the tests above the diffs shown here - those should be handled in InstCombine with another set of patches.
-
Sanjay Patel authored
-
Kazu Hirata authored
This patch renames value to alt so that the parameter won't collide with member function value().
-
Haojian Wu authored
-
Amir Ayupov authored
Set Size appropriately in operand definitions and query it for dumping memory operand size table `getMemOperandSize` (follow-up use D126116) and `X86Disassembler::getMemOperandSize`. Excerpt from a produced `getMemOperandSize` table for X86: ``` static int getMemOperandSize(int OpType) { switch (OpType) { default: return 0; case OpTypes::i8mem: case OpTypes::i8mem_NOREX: return 8; case OpTypes::f16mem: case OpTypes::i16mem: return 16; case OpTypes::f32mem: case OpTypes::i32mem: return 32; ... ``` Reviewed By: skan, pengfei Differential Revision: https://reviews.llvm.org/D127787 -
Amir Ayupov authored
Instead of `movabsq $0x0, %rax` emit shorter equivalent `movl $0x0, %eax`. Intel SDM, 3.4.1.1 General-Purpose Registers in 64-Bit Mode: >32-bit operands generate a 32-bit result, zero-extended to a 64-bit result in > the destination general-purpose register. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127045
-
David Green authored
The included test hits a verifier problems as one of the instructions: ``` %113:tgpreven, %114:tgprodd = MVE_VMLSLDAVas16 %12:tgpreven(tied-def 0), %11:tgprodd(tied-def 1), %7:mqpr, %8:mqpr, 0, $noreg, $noreg ``` Has two inputs that come from different PHIs with the same base reg, but conflicting regclasses: ``` %11:tgprodd = PHI %103:gpr, %bb.1, %16:gpr, %bb.2 %12:tgpreven = PHI %103:gpr, %bb.1, %17:gpr, %bb.2 ``` The MachinePipeliner would attempt to use %103 for both the %11 and %12 operands in the prolog, constraining the register class to the common subset of both. Unfortunately there are no registers that are both odd and even, so the second constrainRegClass fails. Fix this situation by inserting a COPY for the second if the call to constrainRegClass fails. The register allocation can then fold that extra copy away. The register allocation of Q regs changed with this test, but the R regs were the same and no new instructions are needed in the final assembly. Differential Revision: https://reviews.llvm.org/D127971
-