- Sep 21, 2020
-
-
Nikita Popov authored
InstCombine likes to canonicalize comparisons of the form X == C || X == C+1 into (X & -2) == C'. Make sure LVI can still recover the value range from this. Can of course also be useful for proper mask comparisons. For the sake of clarity, the implementation goes through KnownBits to compute the range.
-
Nikita Popov authored
-
Nikita Popov authored
Rewrite this in a way where the core logic is in a separate function, that is invoked with swapped operands. This makes it easier to add handling for additional icmp patterns.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
It should be possible to make this generic, but we're not great at checking legality of *_EXTEND_VECTOR_INREG ops so I'm conservatively putting this inside X86ISelLowering.cpp
-
Sanjay Patel authored
We do similar factorization folds in SimplifyUsingDistributiveLaws, but that drops no-wrap properties. Propagating those optimally may help solve: https://llvm.org/PR47430 The propagation is all-or-nothing for these patterns: when all 3 incoming ops have nsw or nuw, the 2 new ops should have the same no-wrap property: https://alive2.llvm.org/ce/z/Dv8wsU This also solves: https://llvm.org/PR47584
-
Sanjay Patel authored
The test (currently crashing) is reduced from the example provided in the post-commit discussion in D87149. Differential Revision: https://reviews.llvm.org/D87965
-
- Sep 20, 2020
-
-
Dávid Bolvanský authored
[Diagnostics] Fixed -Wsizeof-array-div false positive when divisor is sizeof reference type (PR47495)
-
Simon Pilgrim authored
It should be possible to make this generic, but we're not great at checking legality of *_EXTEND_VECTOR_INREG ops so I'm conservatively putting this inside X86ISelLowering.cpp
-
Simon Pilgrim authored
Allows ZERO_EXTEND_VECTOR_INREG to be shuffle combined on all targets where it is legal.
-
Simon Pilgrim authored
Make it easier to find the method by naming it after the ops it actually handles. We already do this for lowering/combining.
-
Simon Pilgrim authored
We were using Err after it had been moved into cantFail - avoid this by calling cantFail with Error::success() directly.
-
Simon Pilgrim authored
After moving WidenedMask is in an undefined state, so reduce scope of the variable so its reinitialized every iteration - we should still retain any memory allocation savings.
-
Simon Pilgrim authored
Merge the key + sequence/value checks with the key handling code. Reduces the number of key string comparisons and avoids a number of clang static analyzer null dereference warnings.
-
Dávid Bolvanský authored
Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D87971
-
Simon Pilgrim authored
Make it easier to find the method by naming it after the ops it actually handles. We already do this for lowering.
-
Rainer Orth authored
A build on `sparcv9-sun-solaris2.11` with `-DLLVM_ENABLE_PIC=Off` failed linking `libRemarks.so`: [27/2297] Linking CXX shared library lib/libRemarks.so.12git FAILED: lib/libRemarks.so.12git [...] ld: fatal: relocation error: R_SPARC_H44: file lib/libLLVMRemarks.a(Remark.cpp.o): symbol _ZTVN4llvm18raw_string_ostreamE: invalid shared object relocation type: ABS44 code model unsupported [...] On Solaris/sparcv9 as on many other targets you cannot link non-PIC objects into a shared object. The following patch avoids this by not building the library with PIC. It allowed the build to complete and `ninja check-all` showed no errors. Differential Revision: https://reviews.llvm.org/D85626
-
Fangrui Song authored
It always returns true, which may lead to confusion. Inline it because it is trivial and only called twice.
-
Fangrui Song authored
-
Fangrui Song authored
-
Lang Hames authored
Shows how to write a custom IR transform to apply a legacy::PassManager pipeline.
-
Fangrui Song authored
The warning is currently not under a -W option, so it cannot be suppressed. This is annoying for the widespread build system Bazel when specifying the path to gold https://github.com/bazelbuild/bazel/commit/cdd0c3cdba270115940e8ca5ec8104cbcd694671 I have notified them about using --ld-path= forwards https://github.com/bazelbuild/bazel/pull/8580#issuecomment-694321543 but we have to give some transitional period. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D87837
-
Nikita Popov authored
I want to export this function, and the current API was a bit weird: It took an additional Alignment argument that didn't really have anything to do with what the function does. Drop it, and perform a max at the callsite. Also rename it to tryEnforceAlignment().
-
Greg McGary authored
-
Roland McGrath authored
1U has type unsigned int, and << of 32 or more is undefined behavior. Use the proper type in the lhs of the shift. Reviewed By: cryptoad Differential Revision: https://reviews.llvm.org/D87973
-
Nikita Popov authored
-
Roman Lebedev authored
-
Dávid Bolvanský authored
-
Florian Hahn authored
Currently SCEVExpander creates inttoptr for non-integral pointers if the base is a null constant for example. This results in invalid IR. This patch changes InsertNoopCastOfTo to emit a GEP & bitcast to convert to a non-integral pointer. First, a GEP of i8* null is generated and the integral value is used as index. The GEP is then bitcasted to the target type. This was exposed by D71539. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D87827
-
- Sep 19, 2020
-
-
Dávid Bolvanský authored
Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D87964
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Sanjay Patel authored
The output here may not be optimal (yet), but it should be consistent for commuted operands (it was not before) and correct. We can do better by checking FMF and NaN if needed. Code in InstSimplify generally assumes that we have already folded code like this, so it was not handling 2 constant inputs by commuting consistently.
-
Mark de Wever authored
Mitsuru Kariya reported the map operations insert_or_assign with a hint violates the complexity requirement. The function no longer uses a lower_bound, which caused the wrong complexity. Fixes PR38722: [C++17] std::map::insert_or_assign w/ hint violate complexity requirements Differential Revision: https://reviews.llvm.org/D62779
-
Yaxun (Sam) Liu authored
This reverts commit e50465ec due to regression in lldb tests.
-
Yaxun (Sam) Liu authored
when -gsplit option is used with clang driver, clang driver will create a filename with .dwo option based on the input file name and pass it to clang -cc1. This file is used for storing the debug info. Since HIP generate separate object files for different GPU arch's, this file should be different for different GPU arch. This patch adds _ and GPU arch to the stem of the dwo file. Differential Revision: https://reviews.llvm.org/D87791
-
Paul C. Anagnostopoulos authored
Differential Revision: https://reviews.llvm.org/D87919
-
Nico Weber authored
-
Nico Weber authored
-
Nico Weber authored
-