[PATCH] msan: Handle musttail calls
Reid Kleckner
rnk at google.com
Fri Jun 27 15:46:37 PDT 2014
Hi eugenis,
First, avoid calling setTailCall(false) on musttail calls. The funciton
prototypes should be "congruent", so the shadow layout should be exactly
the same.
Second, avoid inserting instrumentation after a musttail call to
propagate the return value shadow. We don't need to propagate the
result of a tail call, it should already be in the right place.
http://reviews.llvm.org/D4331
Files:
include/llvm/IR/Instructions.h
lib/IR/Instructions.cpp
lib/Transforms/Instrumentation/MemorySanitizer.cpp
lib/Transforms/Utils/InlineFunction.cpp
test/Instrumentation/MemorySanitizer/msan_basic.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4331.10949.patch
Type: text/x-patch
Size: 6757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140627/a56f8823/attachment.bin>
More information about the llvm-commits
mailing list