[PATCH] D32839: SimplifyLibCalls: Optimize wcslen
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 5 13:04:02 PDT 2017
MatzeB updated this revision to Diff 98005.
MatzeB marked an inline comment as done.
MatzeB added a comment.
- Add functionality to TargetLibraryInfo to determine the size of wchar_t for a target triple (an upcoming clang patch will introduce an `assert()` on the clang side to catch when they become out of sync).
- getConstantDataArrayInfo() now returns Offset+Length into the ConstantDataArray and corrects handling of zeroinitializers
Repository:
rL LLVM
https://reviews.llvm.org/D32839
Files:
include/llvm/Analysis/TargetLibraryInfo.h
include/llvm/Analysis/ValueTracking.h
include/llvm/IR/Constants.h
include/llvm/Transforms/Utils/SimplifyLibCalls.h
lib/Analysis/TargetLibraryInfo.cpp
lib/Analysis/ValueTracking.cpp
lib/IR/Constants.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/wcslen-1.ll
test/Transforms/InstCombine/wcslen-2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32839.98005.patch
Type: text/x-patch
Size: 27587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170505/5eef1f4e/attachment-0001.bin>
More information about the llvm-commits
mailing list