- Jul 31, 2020
-
-
Jakub Lichman authored
Replaced definition of named ND ConvOps with tensor comprehension syntax which reduces boilerplate code significantly. Furthermore, new ops to support TF convolutions added (without strides and dilations). Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D84628
-
Joachim Protze authored
This is to address the issue reported at: https://bugs.llvm.org/show_bug.cgi?id=46863 Since weak is meaningless for a shared library interface function, this patch disables the attribute, when the OpenMP library is built as shared library. ompt_start_tool is not an interface function, but a internally called function possibly implemented by an OMPT tool. This function needs to be weak if possible to allow overwriting ompt_start_tool with a function implementation built into the application. Differential Revision: https://reviews.llvm.org/D84871
-
Kadir Cetinkaya authored
Currently an Arena can only be built while consuming a TokenBuffer, some users (like clangd) might want to share a TokenBuffer with multiple compenents. This patch changes Arena's TokenBuffer member to be a reference so that it can be created with read-only token buffers. Differential Revision: https://reviews.llvm.org/D84973
-
Kirill Bobyrev authored
This is a refactoring: errors should be logged only on the highest level. Switch from Optional to Expected in the serialization code. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D84939
-
Vitaly Buka authored
Depends on D84617. Differential Revision: https://reviews.llvm.org/D84621
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D84918
-
Balazs Benics authored
It turned out that the D78704 included a private LLVM header, which is excluded from the LLVM install target. I'm substituting that `#include` with the public one by moving the necessary `#define` into that. There was a discussion about this at D78704 and on the cfe-dev mailing list. I'm also placing a note to remind others of this pitfall. Reviewed By: mgorny Differential Revision: https://reviews.llvm.org/D84929
-
Jean Perier authored
CMPLX folding was expecting only one arguments in case X argument is complex. This is wrong since there is also the optional KIND argument. Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D84936
-
Petr Hosek authored
This reverts commit b4c7657b which seems to be breaking certain bots with assertion error.
-
QingShan Zhang authored
Scheduler will try to retrieve the offset and base addr to determine if two loads/stores are disjoint memory access. PowerPC failed to handle this for frame index which will bring extra memory dependency for loads/stores. Reviewed By: jji Differential Revision: https://reviews.llvm.org/D84308
-
Fangrui Song authored
options::LinkerInput options may get duplicated after 6a754968..
-
Fangrui Song authored
-
Juneyoung Lee authored
This patch allows SimplifyPartiallyRedundantLoad work when the branch condition was frozen. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D84944
-
Fangrui Song authored
Disabled for Darwin mode. Also disabled for ARM which has compatible aliases (implied 'sp' operand in 'srs*' instructions like 'srsda #31!').
-
Juneyoung Lee authored
-
Lang Hames authored
Calling createAddressable(false) generates an absolute symbol. We want createAddressable(0, false), which generates an external symbol.
-
Craig Topper authored
It doesn't do any simplifying. It just computes known bits. We can just let InstCombine call computeKnownBits which will handle this just as well.
-
Max Kazantsev authored
We can preserve make.implicit metadata in the split block if it is guaranteed that after following the branch we always reach the block where processing of null case happens, which is equivalent to "initial condition must execute if the loop is entered". Differential Revision: https://reviews.llvm.org/D84925 Reviewed By: asbirlea
-
Max Kazantsev authored
Non-trivial unswitching simply moves terminator being unswitch from the loop up to the switch block. It also preserves all metadata that was there. It might not be a correct thing to do for `make.implicit` metadata. Consider case: ``` for (...) { cond = // computed in loop if (cond) return X; if (p == null) throw_npe(); !make implicit } ``` Before the unswitching, if `p` is null and we reach this check, we are guaranteed to go to `throw_npe()` block. Now we unswitch on `p == null` condition: ``` if (p == null) !make implicit { for (...) { if (cond) return X; throw_npe() } } else { for (...) { if (cond) return X; } } ``` Now, following `true` branch of `p == null` does not always lead us to `throw_npe()` because the loop has side exit. Now, if we run ImplicitNullCheck pass on this code, it may end up making the unswitch condition implicit. This may lead us to turning normal path to `return X` into signal-throwing path, which is not efficient. Note that this does not happen during trivial unswitch: it guarantees that we do not have side exits before condition being unswitched. This patch fixes this situation by unconditional dropping of `make.implicit` metadata when we perform non-trivial unswitch. We could preserve it if we could prove that the condition always executes. This can be done as a follow-up. Differential Revision: https://reviews.llvm.org/D84916 Reviewed By: asbirlea -
Wei Mi authored
is enabled. When -sample-profile-merge-inlinee is enabled, new FunctionSamples may be created during profile merge without GUIDToFuncNameMap being initialized. That will occasionally cause compiler crash. The patch fixes it. Differential Revision: https://reviews.llvm.org/D84994
-
Jason Molenda authored
On an iOS device, if debugserver is left to figure out how to launch the binary provided, it looks at the filename to see if it contains ".app" and asks FrontBoard to launch it. However, if this is actually a command line app with the characters ".app" in the name, it would end up trying to launch that via the FrontBoard calls even though it needed to be launched via posix_spawn. For instance, a command line program called com.application.tester. Jim suggested this patch where we only send binaries that end in ".app" to FrontBoard. Often debugsever is invoked with a --launch command line argument to specify the launch method, and none of this code is hit in that instance. <rdar://problem/65297100>
-
Vitaly Buka authored
I am going to touch them in the next patch anyway
-
Wolfgang Pieb authored
-
Arthur Eubanks authored
Broken by https://reviews.llvm.org/D84981.
-
Craig Topper authored
Similar to what was recently done to ParseATTOperand. Make ParseIntelOperand directly responsible for adding to the operand vector instead of returning the operand. Return a bool for error. Remove ErrorOperand since it is no longer used.
-
Arthur Eubanks authored
For consistency with legacy pass name. Helps with 37 instances of "unknown pass name 'tbaa'" in check-llvm under NPM. Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D84967
-
Arthur Eubanks authored
If an analysis is actually invalidated, there's already a log statement for that: 'Invalidating analysis: FooAnalysis'. Otherwise the statement is not very useful. Reviewed By: asbirlea, ychen Differential Revision: https://reviews.llvm.org/D84981
-
Peter Steinfeld authored
I fixed an assert caused by passing an empty array as the source= argument to RESHAPE(). In the process, I noticed that there were no tests for RESHAPE(), so I wrote a test that covers all the description in 16.9.163. In the process, I made the error messages more consistent and descriptive. I also changed the test to see if a reference to an intrinsic function was a constant to say that it is a constant if it's a refererence to an invalid intrinsic. This avoids emitting multiple messages for the same erroneous source. Differential Revision: https://reviews.llvm.org/D84904
-
Vitaly Buka authored
findAllocaForValue uses AllocaForValue to cache resolved values. The function is used only to resolve arguments of lifetime intrinsic which usually are not fare for allocas. So result reuse is likely unnoticeable. In followup patches I'd like to replace the function with GetUnderlyingObjects. Depends on D84616. Differential Revision: https://reviews.llvm.org/D84617
-
Shilei Tian authored
Refactored the function `targetDataEnd` to make preparation of fixing the issue of ahead-of-time target memory deallocation. This patch only renamed `targetDataEnd` related variables and functions to conform with LLVM code standard. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D84991
-
Vitaly Buka authored
Differential Revision: https://reviews.llvm.org/D84616
-
Shilei Tian authored
Refactored the function `target` to make preparation for fixing the issue of ahead-of-time device memory deallocation. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D84816
-
dfukalov authored
Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D84903
-
Scott Constable authored
Fix for the issue raised in https://github.com/rust-lang/rust/issues/74632. The current heuristic for inserting LFENCEs uses a quadratic-time algorithm. This can apparently cause substantial compilation slowdowns for building Rust projects, where functions > 5000 LoC are apparently common. The updated heuristic in this patch implements a linear-time algorithm. On a set of benchmarks, the slowdown factor for the generated code was comparable (2.55x geo mean for the quadratic-time heuristic, vs. 2.58x for the linear-time heuristic). Both heuristics offer the same security properties, namely, mitigating LVI. This patch also includes some formatting fixes. Differential Revision: https://reviews.llvm.org/D84471
-
Craig Topper authored
After the recent change to the tuning settings for pentium4 to improve our default 32-bit behavior, I've decided to see about implementing -mtune support. This way we could have a default architecture CPU of "pentium4" or "x86-64" and a default tuning cpu of "generic". And we could change our "pentium4" tuning settings back to what they were before. As a step to supporting this, this patch separates all of the features lists for the CPUs into 2 lists. I'm using the Proc class and a new ProcModel class to concat the 2 lists before passing to the target independent ProcessorModel. Future work to truly support mtune would change ProcessorModel to take 2 lists separately. I've diffed the X86GenSubtargetInfo.inc file before and after this patch to ensure that the final feature list for the CPUs isn't changed. Differential Revision: https://reviews.llvm.org/D84879
-
kuterd authored
This patch addes time trace functionality to have a better understanding of the analysis times. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D84980
-
Craig Topper authored
This includes basic support for computeKnownBits on abs. I've left FIXMEs for more complicated things we could do. Differential Revision: https://reviews.llvm.org/D84963
-
Vedant Kumar authored
InstrProfilingBuffer.c.o is generic code that must support compilation into freestanding projects. This gets rid of its dependence on the _getpagesize symbol from libc, shifting it to InstrProfilingFile.c.o. This fixes a build failure seen in a firmware project. rdar://66249701
-
Davide Italiano authored
When we detect a process that the native debugserver cannot handle, handoff the connection fd to the translated debugserver.
-
Eli Friedman authored
Just the obvious implementation that rewrites the result type. Also fix warning from EXTRACT_SUBVECTOR legalization that triggers on the test. Differential Revision: https://reviews.llvm.org/D84706
-