1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/test/Analysis/ValueTracking
Yaxun Liu 7bae0ef103 Fix known zero bits for addrspacecast.
Currently LLVM assumes that a pointer addrspacecasted to a different addr space is equivalent to trunc or zext bitwise, which is not true. For example, in amdgcn target, when a null pointer is addrspacecasted from addr space 4 to 0, its value is changed from i64 0 to i32 -1.

This patch teaches LLVM not to assume known bits of addrspacecast instruction to its operand.

Differential Revision: https://reviews.llvm.org/D26803

llvm-svn: 287545
2016-11-21 15:42:31 +00:00
..
assume.ll
deref-bitcast-of-gep.ll Reduce dependence on pointee types when deducing dereferenceability 2016-06-01 16:47:45 +00:00
dereferenceable-and-aligned.ll [Loads] Fix crash in is isDereferenceableAndAlignedPointer() 2016-10-28 15:32:28 +00:00
get-pointer-base-with-const-off.ll [ValueTracking] Fix crash in GetPointerBaseWithConstantOffset() 2016-10-07 14:23:29 +00:00
known-bits-from-range-md.ll
known-non-equal.ll
known-power-of-two.ll
known-signbit-shift.ll The patch improves ValueTracking on left shift with nsw flag. 2016-08-24 23:01:33 +00:00
knownnonzero-shift.ll
knownzero-addrspacecast.ll Fix known zero bits for addrspacecast. 2016-11-21 15:42:31 +00:00
knownzero-shift.ll auto-generate checks 2016-09-16 17:54:52 +00:00
memory-dereferenceable.ll Teach isDereferenceablePointer to look through returned-argument functions 2016-07-11 03:08:49 +00:00
monotonic-phi.ll
pr23011.ll
signbits-extract-elt.ll [ValueTracking] Teach computeKnownBits and ComputeNumSignBits to look through ExtractElement. 2016-10-06 09:56:21 +00:00