diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-11-04 14:41:47 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-11-04 14:41:47 +0000 |
| commit | 86392292ee722abb03af4befe2d2c8baaeadaf22 (patch) | |
| tree | b33cb35c56c65b9d9ad8db8bc49159a4246f138a /lib/Transforms/Scalar/LoopIdiomRecognize.cpp | |
| parent | 36272db3cad448211389168cced4baac39a1a0d1 (diff) | |
Diffstat (limited to 'lib/Transforms/Scalar/LoopIdiomRecognize.cpp')
| -rw-r--r-- | lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 653948717fb9..eb3188711858 100644 --- a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -921,10 +921,11 @@ bool LoopIdiomRecognize::processLoopStridedStore( Type *Int8PtrTy = DestInt8PtrTy; Module *M = TheStore->getModule(); + StringRef FuncName = "memset_pattern16"; Value *MSP = - M->getOrInsertFunction("memset_pattern16", Builder.getVoidTy(), + M->getOrInsertFunction(FuncName, Builder.getVoidTy(), Int8PtrTy, Int8PtrTy, IntPtr); - inferLibFuncAttributes(*M->getFunction("memset_pattern16"), *TLI); + inferLibFuncAttributes(M, FuncName, *TLI); // Otherwise we should form a memset_pattern16. PatternValue is known to be // an constant array of 16-bytes. Plop the value into a mergable global. |
