- Jun 20, 2022
-
-
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
-
Kazu Hirata authored
-
Arthur Eubanks authored
Compile time tracker: https://llvm-compile-time-tracker.com/compare.php?from=1e556f459b44dd0ca4073e932f66ecb6f40fe31a&to=6d7bed4e1e72c6a8592748626091274209740a40&stat=instructions Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D128128
-
Simon Pilgrim authored
-
Nimish Mishra authored
Reviewed By: peixin Differential Revision: https://reviews.llvm.org/D127822
-
Simon Pilgrim authored
Equivalent to MaskedValueIsZero, except its checking if all of the demanded vectors elements are known to be zero
-
Kazu Hirata authored
-