- Jan 01, 2022
-
-
Markus Böck authored
-
LLVM GN Syncbot authored
-
Mehdi Amini authored
This is a fairly large structure (952B according to Coverity), it was already passed by reference in most places but not consistently.
-
Mehdi Amini authored
This is a fairly large structure (952B according to Coverity), it was already passed by reference in most places but not consistently.
-
Mehdi Amini authored
Flagged by Coverity
-
Mehdi Amini authored
Flagged by Coverity.
-
Craig Topper authored
This matches what is done in ValueTracking.cpp Reviewed By: RKSimon, foad Differential Revision: https://reviews.llvm.org/D116423
-
Craig Topper authored
[RISCV][LegalizeIntegerTypes] Teach PromoteSetCCOperands not to sext i32 comparisons for RV64 if the promoted values are already zero extended. This is similar to what is done for targets that prefer zero extend where we avoid using a zero extend if the promoted values are sign extended. We'll also check for zero extended operands for ugt, ult, uge, and ule when the target prefers sign extend. This is different than preferring zero extend, where we only check for sign bits on equality comparisons. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D116421
-
Mehdi Amini authored
Reported by Coverity
-
Markus Böck authored
MLIR already exposes landingpads, the invokeop and the personality function on LLVM functions. With this intrinsic it should be possible to implement exception handling via the exception handling mechanisms provided by the Itanium ABI. Differential Revision: https://reviews.llvm.org/D116436
-
Kazu Hirata authored
-
Kazu Hirata authored
The function was introduced without any use on Aug 11, 2017 in commit 7f37794e.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Nuno Lopes authored
The IR verifier should probably catch this. Alive2 did, though.
-
Kazu Hirata authored
-
Kazu Hirata authored
InitializePasses.h contains the proper declaration. Identified with readability-redundant-declaration.
-
Kazu Hirata authored
Identified with modernize-use-nullptr.
-
Sanjay Patel authored
~(A & B) | (A ^ B) --> ~(A & B) https://alive2.llvm.org/ce/z/hXQucg
-
Sanjay Patel authored
-
John Ericson authored
Extracted from D99484. My new plan is to start from the outside and work inward. Reviewed By: stephenneuendorffer Differential Revision: https://reviews.llvm.org/D115569
-
John Ericson authored
Extracted from D99484. My new plan is to start from the outside and work inward. Reviewed By: stephenneuendorffer Differential Revision: https://reviews.llvm.org/D115568
-
Kazu Hirata authored
Identified by misc-unused-using-decls.
-
Kazu Hirata authored
-
Simon Tatham authored
This is the first commit in a series that implements support for "armv8.8-a" architecture. This should contain all the necessary boilerplate to make the 8.8-A architecture exist from LLVM and Clang's point of view: it adds the new arch as a subtarget feature, a definition in TargetParser, a name on the command line, an appropriate set of predefined macros, and adds appropriate tests. The new architecture name is supported in both AArch32 and AArch64. However, in this commit, no actual _functionality_ is added as part of the new architecture. If you specify -march=armv8.8a, the compiler will accept it and set the right predefines, but generate no code any differently. Differential Revision: https://reviews.llvm.org/D115694
-
- Dec 31, 2021
-
-
Paul Walker authored
-
Florian Hahn authored
VF should always be non-zero in widenIntOrFpInduction. Turn check into assertion.
-
Random authored
Early revisions of the VR4300 have a hardware bug where two consecutive multiplications can produce an incorrect result in the second multiply. This revision adds the `-mfix4300` flag to llvm (and clang) which, when passed, provides a software fix for this issue. More precise description of the "mulmul" bug: ``` mul.[s,d] fd,fs,ft mul.[s,d] fd,fs,ft or [D]MULT[U] rs,rt ``` When the above sequence is executed by the CPU, if at least one of the source operands of the first mul instruction happens to be `sNaN`, `0` or `Infinity`, then the second mul instruction may produce an incorrect result. This can happen both if the two mul instructions are next to each other and if the first one is in a delay slot and the second is the first instruction of the branch target. Description of the fix: This fix adds a backend pass to llvm which scans for mul instructions in each basic block and inserts a nop whenever the following conditions are met: - The current instruction is a single or double-precision floating-point mul instruction. - The next instruction is either a mul instruction (any kind) or a branch instruction. Differential Revision: https://reviews.llvm.org/D116238
-
Jay Foad authored
-
Pavel Labath authored
Just what it says on the box.
-
Craig Topper authored
Better to use the named list instead of assuming the size of MxList.
-
Craig Topper authored
Rather than wrapping a def around a list, we can just make a defvar of the list.
-
wangpc authored
For large integers (for example, magic numbers generated by TargetLowering::BuildSDIV when dividing by constant), we may need about 4~8 instructions to build them. In the same time, it just takes two instructions to load constants (with extra cycles to access memory), so it may be profitable to put these integers into constant pool. Reviewed By: asb, craig.topper Differential Revision: https://reviews.llvm.org/D114950
-
jacquesguan authored
Fix incorrect cases of vmv.s.f and add test cases for it. Differential Revision: https://reviews.llvm.org/D116432
-
Stella Laurenzo authored
https://reviews.llvm.org/D109555 added support to APInt for this, so the special case to disable it is no longer valid. It is in fact legal to construct these programmatically today, and they print properly but do not parse. Justification: zero bit integers arise naturally in various bit reduction optimization problems, and having them defined for MLIR reduces special casing. I think there is a solid case for i0 and ui0 being supported. I'm less convinced about si0 and opted to just allow the parser to round-trip values that already verify. The counter argument is that the proper singular value for an si0 is -1. But the counter to this counter is that the sign bit is N-1, which does not exist for si0 and it is not unreasonable to consider this non-existent bit to be 0. Various sources consider it having the singular value "0" to be the least surprising. Reviewed By: lattner Differential Revision: https://reviews.llvm.org/D116413
-
Alexandre Ganea authored
Fixes interception of atoi() entry point.
-
Sam McCall authored
This more precise type is useful for tools, e.g. fixes https://github.com/clangd/clangd/issues/831 Differential Revision: https://reviews.llvm.org/D107275
-
Fangrui Song authored
Make it smaller
-
Craig Topper authored
[LegalizeIntegerTypes] Rename NewLHS/NewRHS arguments to DAGTypeLegalizer::PromoteSetCCOperands. NFC The 'New' only makes sense in the context of these being output arguments, but they are also used as inputs first. Drop the 'New' and just call them LHS/RHS. Factored out of D116421.
-
Ellis Hoag authored
In debug info correlation mode we do not emit the data globals so we need to explicitly mark the counter globals as used so they don't get stripped. Reviewed By: kyulee Differential Revision: https://reviews.llvm.org/D115981
-