- Apr 01, 2023
-
-
Oleg Shyshkov authored
FuncOp is IsolatedFromAbove, so this change doesn't alter current behaviour, but the current code fails if the tile op is in an op with IsolatedFromAbove trait. An alternative would be to create constant in the same region where they're used a rely on CSE to figure out where to move them. Differential Revision: https://reviews.llvm.org/D147273
-
Mikhail R. Gadelha authored
Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D146203
-
Mikhail R. Gadelha authored
As part of D145584, we noticed that llvm was generating suboptimal code for constraint m when the operand can be be lowered to reg+imm form: it was being selected as a single register rather than register+imm. This caused an unnecessary 'addi' to be gen for each m constraint. This patch changes llvm to select register+imm. This might generate code that cannot be assembled, but matches gcc's behavior. Reviewed By: craig.topper, kito-cheng Differential Revision: https://reviews.llvm.org/D146245
-
LLVM GN Syncbot authored
-
Philip Reames authored
Reduced from the case which triggered the revert of 498aa534, and then generalized to cover both expansion paths.
-
Piotr Zegar authored
Check helps enforce consistent token representation for binary, unary and overloaded operators in C++ code. The check supports both traditional and alternative representations of operators. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D144522
-
- Mar 31, 2023
-
-
Roy Sundahl authored
Explain in the release notes that the Darwin dynamic linker (dyld) requires that at least one weak symbol be present in any mach-o file that defines an intended override of a sanitizer dylib weak reference. rdar://103453678 Reviewed By: thetruestblue Differential Revision: https://reviews.llvm.org/D146745
-
Roy Sundahl authored
Git wants an email address these days. (Also a nit typo.) Reviewed By: XiaodongLoong Differential Revision: https://reviews.llvm.org/D146728
-
Jay Foad authored
-
Alex Brachet authored
Differential Revision: https://reviews.llvm.org/D147258
-
Nikita Popov authored
The second argument is ForSigned, not UseInstrInfo.
-
Nikita Popov authored
Same as the existing one, but with both nuw and nsw on the add.
-
Jie Fu authored
/data/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:3078:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] default: ^ /data/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:3078:3: note: insert 'break;' to avoid fall-through default: ^ break; 1 error generated.
-
Simon Pilgrim authored
[X86] MatchVectorAllZeroTest - add support for icmp(bitcast(icmp_ne(X,Y)),0) vector reduction patterns Many allof/anyof/noneof reduction patterns are canonicalized by bitcasting a vXi1 vector comparison result to iN and compared against 0/-1. This patch adds support for recognizing a icmp_ne vector comparison against 0, which matches an 'whole vectors are equal' comparison pattern. There are a few more steps to follow in future patches - we need to add support to MatchVectorAllZeroTest for comparing against -1 (in some cases), and this initial refactoring of LowerVectorAllZero to LowerVectorAllEqual needs to be extended so we can fully merge with the similar combineVectorSizedSetCCEquality code (which deals with scalar integer memcmp patterns). Another step towards Issue #53419 Differential Revision: https://reviews.llvm.org/D147243
-
Stefan Pintilie authored
The addr-label.ll test uses the following setup: define ptr @test1() nounwind { entry: ret ptr blockaddress(@test1b, %test_label) } define i32 @test1b() nounwind { entry: ret i32 -1 test_label: br label %ret ret: ret i32 -1 } However, according to the LLVM Reference guide for blockaddress() "This value only has defined behavior when used as an operand to the ‘indirectbr’ or for comparisons against null." For this test the value is just returned as a pointer from test1(). On PowerPC this test has unreliable results as the order in which passes are run can make this test pass or fail. If the %test_label in test1b() is removed before a number of passes are completed on test1() then this test will fail on PowerPC. I have marked this test as UNSUPPORTED on PowerPC. -
David Green authored
It is expected that shuffles that we hoist through binops only have a single vector operand, the other being undef/poison. The checks for isDeInterleaveMaskOfFactor check that all the elements come from inside the first vector, but with non-canonical shuffles the second operand could still have a value. Add a quick check to make sure it is UndefValue as expected, to make sure we don't run into problems with BinOpShuffles not using BinOps. Fixes #61749 Differential Revision: https://reviews.llvm.org/D147306
-
Nikita Popov authored
Move this handling to a centralized place and extend it to handle saturating add/sub intrinsics. I originally wanted to make this fully generic rather than whitelist based, because this is legal and likely profitable for all speculatable intrinsics. The caveat is that for vector selects, the intrinsic can't perform cross-lane operations like a shuffle or reduction, which we don't really expose as a generic property right now. So for now I'm just extending the list.
-
Timm Bäder authored
The InterpFrame was only created so early so we could use getThis(). However, we need to know the Function when creating the InterpFrame and in the case of virtual functions, we need to determine what function to call at interpretation time. Get the This pointer ourselves and just create the InterpFrame later. Differential Revision: https://reviews.llvm.org/D142617
-
Nikita Popov authored
Test cross-lane intrinsics with vector selects.
-
Nikita Popov authored
-
Qiongsi Wu authored
This patch renames the `mroptr` option to `mxcoff-roptr` to indicate in the option itself that it is xcoff specific. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D147161
-
Jay Foad authored
Various Real classes took an OffsetMode parameter, but only used it to extract the suffix for the name of the corresponding pseudo. I found this confusing because you couldn't usefully define and use a different OffsetMode here, e.g. one with different operand types to affect how the instruction was printed. Overall I think it's simpler to just pass in the suffixed pseudo name directly. Differential Revision: https://reviews.llvm.org/D147242
-
Jay Foad authored
There should be no need to reserve all SGPR hi16/lo16 halves, or all AGPR hi16 halves. This should be done by marking the corresponding register classes as not allocatable instead. Differential Revision: https://reviews.llvm.org/D147158
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D142448
-
Nikita Popov authored
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D141831
-
Florian Hahn authored
Tests for D147322.
-
OCHyams authored
Follow up to https://reviews.llvm.org/D146987. Remove assertion that the Value must be a pointer type. This fires in real-world examples e.g. by codegenprepare introducing ptrtoint conversions. The buildbots have not caught up yet but without this change the test compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp fails with an ICE.
-
Timm Bäder authored
We left the result of RHS on the stack in case DiscardResult was true. Differential Revision: https://reviews.llvm.org/D141784
-
Joseph Huber authored
Summary: This disables the MPFR warning on the GPU since we can't support it anyway. Also fixes a misspelled message.
-
Aaron Ballman authored
This was using a bitwise OR of two boolean member variables, now it's using a logical OR instead.
-
Benjamin Kramer authored
-
Leandro Lupori authored
When folding a binary operation between two array constructors, it is necessary to check if each value contained in the left operand has the same rank and shape as the one on the right. Otherwise, lowering would end up with an operation between values of different ranks/shapes, which could result in a crash. For instance, the following code was crashing the compiler: integer :: x(4), y(2, 2), z(4) z = (/x/) + (/y/) Fixes #60229 Reviewed By: klausler, jeanPerier Differential Revision: https://reviews.llvm.org/D147181
-
tyb0807 authored
When dropping leading unit dims of vector.insert's operands and creating a new vector.insert, its new position rank should be computed explicitly in two steps: first based on the numbers of leading unit dims dropped from the vector.insert's destination, then based on the numbers of leading unit dims dropped from its source. Reviewed By: pifon2a Differential Revision: https://reviews.llvm.org/D147280
-
Tobias Gysi authored
The revision moves the data layout parsing into a separate file and extends it to support pointer data layout specifications. Additionally, it also produces more precise warnings and error messages. Reviewed By: Dinistro, definelicht Differential Revision: https://reviews.llvm.org/D147170
-
Nikita Popov authored
Now that we canonicalize to min/max intrinsics, we no longer need to guard against this here. In fact, it seems like the issue from PR46271 was the final push for introducing the intrinsics in the first place...
-
Vir Narula authored
Add special case to matrix lowering for dot products. Normal matrix lowering if optimized for either row-major or column-major, which results in many `shufflevector` instructions being generated for one vector. We work around this in our special case. We can also use vector-reduce adds instead of sequential adds to sum the result of the element-wise multiplication, which takes advantage of SIMD instructions. Reviewed By: fhahn, thegameg Differential Revision: https://reviews.llvm.org/D131125
-
OCHyams authored
See https://discourse.llvm.org/t/rfc-enable-assignment-tracking/69399 This sets the `-Xclang -fexperimental-assignment-tracking` flag to the value `enabled` which means it will be enabled so long as none of the following are true: it's an LTO build, LLDB debugger tuning has been specified, or it's an O0 build (no work is done in any case if -g is not specified or -gmlt is used). Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D146987
-
OCHyams authored
If the to-be-split dbg.assign has a `DIArgList` and a new `Value` has been requested then use a kill-location for the new dbg.assign. We can't simply replace the value component (a `DIArgList`) with the new `Value` as that would leave the `DIExpression` in an invalid state (`DW_OP_LLVM_arg` operands with no arglist). Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D147312
-
Nikita Popov authored
-