- Aug 13, 2020
-
-
Amara Emerson authored
This is mostly a straight port from SelectionDAG. We re-use the actual bit-test analysis part from SwitchLoweringUtils, which was factored out earlier to support jump-tables. Differential Revision: https://reviews.llvm.org/D85233
-
Simon Pilgrim authored
-
Craig Topper authored
Recommit "[InstSimplify] Remove select ?, undef, X -> X and select ?, X, undef -> X transforms" and its follow up patches This recommits the following patches now that D85684 has landed 1cf6f210 [IR] Disable select ? C : undef -> C fold in ConstantFoldSelectInstruction unless we know C isn't poison. 469da663 [InstSimplify] Re-enable select ?, undef, X -> X transform when X is provably not poison 122b0640 [InstSimplify] Don't fold vectors of partial undef in SimplifySelectInst if the non-undef element value might produce poison ac0af12e [InstSimplify] Add test cases for opportunities to fold select ?, X, undef -> X when we can prove X isn't poison 9b1e9532 [InstSimplify] Remove select ?, undef, X -> X and select ?, X, undef -> X transforms
-
Christopher Tetreault authored
Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D84212
-
David Green authored
-
David Green authored
Similar to the Two op + select patterns that were added recently, this adds some patterns for select + fma to turn them into predicated operations. Differential Revision: https://reviews.llvm.org/D85824
-
Simon Pilgrim authored
Pull out element equivalence code from isShuffleEquivalent/isTargetShuffleEquivalent, I've also removed many of the index modulos where possible. First step toward simply adding some additional equivalence tests.
-
Craig Topper authored
We need to produce a setcc instruction which has an 8-bit result. This gets rid of a bunch of cases that were using the s1->s8/s16/s32/s64 handling in selectZExt. I'm not very familiar with GlobalISel yet so I'm not yet sure the best way to do things. I'd especially like feedback on the best way to handle the currently split 32-bit and 64-bit mode handling. Differential Revision: https://reviews.llvm.org/D85814
-
Matt Morehouse authored
This fixes https://bugs.llvm.org/show_bug.cgi?id=47118. Before this change, when the sigaction interceptor prevented a signal from being changed, it also prevented the oldact output parameter from being written to. This resulted in a use-of-uninitialized-variable by any program that used sigaction for the purpose of reading signals. This change fixes this: the regular sigaction implementation is still called, but with the act parameter nullified, preventing any changes. Patch By: IanPudney Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D85797
-
Cameron McInally authored
Lower fixed length MINNUM/MAXNUM to scalable vectors. Cherry-picked from D71767 with added tests. Differential Revision: https://reviews.llvm.org/D85744
-
Johannes Doerfert authored
-
Ilya Leoshkevich authored
Commit 9385aaa8 ("[sancov] Fix PR33732") added zeroext to __sanitizer_cov_trace(_const)?_cmp[1248] parameters for x86_64 only, however, it is useful on other targets, in particular, on SystemZ: it fixes swap-cmp.test. Therefore, use it on all targets. This is safe: if target ABI does not require zero extension for a particular parameter, zeroext is simply ignored. A similar change has been implemeted as part of commit 3bc439bd ("[MSan] Add instrumentation for SystemZ"), and there were no problems with it. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D85689
-
Dávid Bolvanský authored
Clang command line docs mention `-fno-stack-clash-protection`, and GCC also uses -fno-stack-clash-protection. Fixes PR47139 Reviewed By: tstellar Differential Revision: https://reviews.llvm.org/D85844
-
Jakub Lichman authored
Differential Revision: https://reviews.llvm.org/D85833
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D85683
-
Alexey Bataev authored
Need to call getRawStmt() function instead, when trying to get inner associated statement for the executable directive. Not all directives use captured statements.
-
Louis Dionne authored
We don't support GCC in C++03 mode, and Clang provides rvalue references even in C++03 mode. So there's effectively no supported compiler that doesn't support rvalue references. Differential Revision: https://reviews.llvm.org/D84943
-
- Aug 12, 2020
-
-
Valentin Clement authored
Extra semi-colon causes bunch of warnings with GCC 9.2.0 ``` [1354/1516] Building CXX object tools/mlir/lib/Dialect/Linalg/IR/CMakeFiles/obj.MLIRLinalgOps.dir/LinalgOps.cpp.o /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1306:35: warning: extra ';' [-Wpedantic] 1306 | CANONICALIZERS_AND_FOLDERS(ConvOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1307:41: warning: extra ';' [-Wpedantic] 1307 | CANONICALIZERS_AND_FOLDERS(PoolingMaxOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1308:41: warning: extra ';' [-Wpedantic] 1308 | CANONICALIZERS_AND_FOLDERS(PoolingMinOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1309:41: warning: extra ';' [-Wpedantic] 1309 | CANONICALIZERS_AND_FOLDERS(PoolingSumOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1310:35: warning: extra ';' [-Wpedantic] 1310 | CANONICALIZERS_AND_FOLDERS(CopyOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1311:35: warning: extra ';' [-Wpedantic] 1311 | CANONICALIZERS_AND_FOLDERS(FillOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1312:38: warning: extra ';' [-Wpedantic] 1312 | CANONICALIZERS_AND_FOLDERS(GenericOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1313:45: warning: extra ';' [-Wpedantic] 1313 | CANONICALIZERS_AND_FOLDERS(IndexedGenericOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1318:42: warning: extra ';' [-Wpedantic] 1318 | CANONICALIZERS_AND_FOLDERS(BatchMatmulOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1319:34: warning: extra ';' [-Wpedantic] 1319 | CANONICALIZERS_AND_FOLDERS(DotOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1320:37: warning: extra ';' [-Wpedantic] 1320 | CANONICALIZERS_AND_FOLDERS(MatmulOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1321:37: warning: extra ';' [-Wpedantic] 1321 | CANONICALIZERS_AND_FOLDERS(MatvecOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1322:36: warning: extra ';' [-Wpedantic] 1322 | CANONICALIZERS_AND_FOLDERS(ConvWOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1323:38: warning: extra ';' [-Wpedantic] 1323 | CANONICALIZERS_AND_FOLDERS(ConvNWCOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1324:38: warning: extra ';' [-Wpedantic] 1324 | CANONICALIZERS_AND_FOLDERS(ConvNCWOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1325:37: warning: extra ';' [-Wpedantic] 1325 | CANONICALIZERS_AND_FOLDERS(ConvHWOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1326:39: warning: extra ';' [-Wpedantic] 1326 | CANONICALIZERS_AND_FOLDERS(ConvNHWCOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1327:39: warning: extra ';' [-Wpedantic] 1327 | CANONICALIZERS_AND_FOLDERS(ConvNCHWOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1328:38: warning: extra ';' [-Wpedantic] 1328 | CANONICALIZERS_AND_FOLDERS(ConvDHWOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1329:40: warning: extra ';' [-Wpedantic] 1329 | CANONICALIZERS_AND_FOLDERS(ConvNDHWCOp); | ^ /home/4vn/versioning/llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1330:40: warning: extra ';' [-Wpedantic] 1330 | CANONICALIZERS_AND_FOLDERS(ConvNCDHWOp); | ^ ``` Reviewed By: mehdi_amini, rriddle Differential Revision: https://reviews.llvm.org/D85766 -
Alexey Bataev authored
In untied tasks, need to allocate the space for local variales, declared in task region, when the memory for task data is allocated. THe function can be interrupted and we can exit from the function in untied task switch. Need to keep the state of the local variables in this case. Also, the compiler should not call cleanup when exiting in untied task switch until the real exit out of the declaration scope is met during execution. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D84457
-
Anastasia Stulova authored
Patch by Ole Strohm (olestrohm)! Tags: #clang Differential Revision: https://reviews.llvm.org/D85429
-
Krzysztof Parzyszek authored
This fixes https://llvm.org/PR47128.
-
Anna Welker authored
Widen the scope of memory operations that are allowed to be tail predicated to include gathers and scatters, such that loops that are auto-vectorized with the option -enable-arm-maskedgatscat (and actually end up containing an MVE gather or scatter) can be tail predicated. Differential Revision: https://reviews.llvm.org/D85138
-
Zurab Tsinadze authored
`toupper`, `tolower`, `toascii` functions were added to StdLibraryFunctionsChecker to fully cover CERT STR37-C rule: https://wiki.sei.cmu.edu/confluence/x/BNcxBQ Differential Revision: https://reviews.llvm.org/D85093
-
Alexey Bataev authored
If the arguments are mapped, but are actually not used in the target region, the compiler still adds attribute TGT_OMP_TARGET_PARAM for such arguments. It makes the libomptarget to add such parameters to the list of arguments, passed to the kernel at the runtime, and may lead to incorrect results/crashes during execution. Differential Revision: https://reviews.llvm.org/D85755
-
Matt Arsenault authored
Remove the intermediate transform in the DAG path. I believe this is the last non-deprecated intrinsic that needs handling.
-
Matt Arsenault authored
This avoids a possible regression in a future patch
-
Alexey Bataev authored
This reverts commit ec9563c5 to investigate compiler crash revelaed by the buildbots.
-
Xing GUO authored
This patch makes the 'AddrSize' field optional. If the address size is missing, yaml2obj will infer it from the object file. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D85805
-
Xing GUO authored
This patch helps simplify some codes in writeSectionData() function. Reviewed By: jhenderson, grimar Differential Revision: https://reviews.llvm.org/D85821
-
Alexey Bataev authored
Summary: In untied tasks, need to allocate the space for local variales, declared in task region, when the memory for task data is allocated. THe function can be interrupted and we can exit from the function in untied task switch. Need to keep the state of the local variables in this case. Also, the compiler should not call cleanup when exiting in untied task switch until the real exit out of the declaration scope is met during execution. Reviewers: jdoerfert Subscribers: yaxunl, guansong, cfe-commits, sstefan1, caomhin Tags: #clang Differential Revision: https://reviews.llvm.org/D84457
-
Erich Keane authored
COFF targets have a max object alignment of 8192, so trying to create one with a larger size results in an unreachable in WinCOFFObjectWriter. For the reproducer I have uses thread local storage, however other alignments are likely affected as well. This patch sets the MaxVectorAlign for COFF to 8192. Additionally, though there is no longer a way to reproduce that I could find, it correctly sets the MaxTLSAlign for COFF to that value as well, so that if anyone comes up with a situation where this is true, it will cause an error. Differential Revision: https://reviews.llvm.org/D85543
-
Sanjay Patel authored
Based on post-commit discussion in: D81766 Other vectorization passes (SLP and Loop) use this TTI API similarly.
-
Sanjay Patel authored
-
David Green authored
-
Sanjay Patel authored
I'm not sure if this solves PR46839 completely, but reducing the casting should help: https://bugs.llvm.org/show_bug.cgi?id=46839 Differential Revision: https://reviews.llvm.org/D85647
-
Sanjay Patel authored
This test verifies the code change from: rGb0b95dab (although that would not be true if PR47128 is fixed)
-
Kai Nacke authored
On z/OS, the information is stored in the Common System Data Area (CSD). It is the number of CPs allocated to the current LPAR. Reviewers: aganea, hubert.reinterpertcast, MaskRay Reviewed By: hubert.reinterpertcast Differential Revision: https://reviews.llvm.org/D85531
-
Sam Parker authored
When TTI was updated to use an explicit cost, TCK_CodeSize was used although the default implicit cost would have been the hand-wavey cost of size and latency. So, revert back to this behaviour. This is not expected to have (much) impact on targets since most (all?) of them return the same value for SizeAndLatency and CodeSize. When optimising for size, the logic has been changed to query CodeSize costs instead of SizeAndLatency. This patch also adds a testing option in the unroller so that OptSize thresholds can be specified. Differential Revision: https://reviews.llvm.org/D85723
-
Raphael Isemann authored
This reverts commit 246afe0c. This broke the following tests on Linux it seems: lldb-api :: commands/expression/multiline-completion/TestMultilineCompletion.py lldb-api :: iohandler/completion/TestIOHandlerCompletion.py
-