diff options
| author | Tobias Edler von Koch <tobias@codeaurora.org> | 2015-12-16 17:29:37 +0000 |
|---|---|---|
| committer | Tobias Edler von Koch <tobias@codeaurora.org> | 2015-12-16 17:29:37 +0000 |
| commit | b51460cf86e730c502a6d6116862a72ed25f5b78 (patch) | |
| tree | e369b02e4a1740f856a055c9c7b44e49f682b8ca /llvm/lib/Target/Hexagon/HexagonISelLowering.cpp | |
| parent | d083b9a8f67a10d24e2ccceb96b92a9a0dd119bc (diff) | |
| download | bcm5719-llvm-b51460cf86e730c502a6d6116862a72ed25f5b78.tar.gz bcm5719-llvm-b51460cf86e730c502a6d6116862a72ed25f5b78.zip | |
[Hexagon] Make memcpy lowering thread-safe
This removes an unpleasant hack involving a global variable for special
lowering of certain memcpy calls. These are now lowered as intended in
EmitTargetCodeForMemcpy in the same way that other targets do it.
llvm-svn: 255785
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonISelLowering.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp index f82fe7699e8..09e40d454ba 100644 --- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -819,12 +819,7 @@ HexagonTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI, // If the callee is a GlobalAddress/ExternalSymbol node (quite common, every // direct call is) turn it into a TargetGlobalAddress/TargetExternalSymbol // node so that legalize doesn't hack it. - if (flag_aligned_memcpy) { - const char *MemcpyName = - "__hexagon_memcpy_likely_aligned_min32bytes_mult8bytes"; - Callee = DAG.getTargetExternalSymbol(MemcpyName, PtrVT); - flag_aligned_memcpy = false; - } else if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee)) { + if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee)) { Callee = DAG.getTargetGlobalAddress(G->getGlobal(), dl, PtrVT); } else if (ExternalSymbolSDNode *S = dyn_cast<ExternalSymbolSDNode>(Callee)) { |

