P4 to Git Change 1288111 by jsjodin@jsjodin-git2p4-llvm on 2016/07/06 18:20:21

SWDEV-3 - [msan] Fix __msan_maybe_ for non-standard type sizes.

	Fix incorrect calculation of the type size for __msan_maybe_warning_N
	call that resulted in an invalid (narrowing) zext instruction and
	\"Assertion `castIsValid(op, S, Ty) && \"Invalid cast!\"' failed.\"

	Only happens in very large functions (with more than 3500 MSan
	checks) operating on integer types that are not power-of-two.

	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274395 91177308-0d34-0410-b5e6-96231b3b80d8

	GitHash: dcfa1b5241a1d0484ad1a67485329b1c7c13b575

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/llvm.git/lib/Transforms/Instrumentation/MemorySanitizer.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm.git/test/Instrumentation/MemorySanitizer/with-call-type-size.ll#1 add
This commit is contained in:
foreman
2016-07-07 03:40:09 -04:00
parent 476d5fff29
commit 89153addab
7 changed files with 82 additions and 90 deletions
+1 -1
View File
@@ -2678,7 +2678,7 @@ KernelBlitManager::writeRawData(
const void* data
) const
{
static_cast<pal::Memory&>(memory).writeRawData(gpu(), 0, size, data, false);
static_cast<pal::Memory&>(memory).writeRawData(gpu(), size, data, false);
synchronize();
}