mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
7d99ae532b
ValueTracking has to strike a balance when attempting to propagate information backwards from assumes, because if the information is trivially propagated backwards, it can appear to LLVM that the assumption is known to be true, and therefore can be removed. This is sound (because an assumption has no semantic effect except for causing UB), but prevents the assume from allowing further optimizations. The isEphemeralValueOf check exists to try and prevent this issue by not removing the source of an assumption. This tries to make it a little bit more general to handle the case of side-effectful instructions, such as in %0 = call i1 @get_val() %1 = xor i1 %0, true call void @llvm.assume(i1 %1) Patch by Ariel Ben-Yehuda, thanks! Differential Revision: https://reviews.llvm.org/D36590 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310859 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
assume.ll | ||
deref-bitcast-of-gep.ll | ||
dereferenceable-and-aligned.ll | ||
get-pointer-base-with-const-off.ll | ||
known-bits-from-range-md.ll | ||
known-non-equal.ll | ||
known-nonnull-at.ll | ||
known-power-of-two.ll | ||
known-signbit-shift.ll | ||
knownnonzero-shift.ll | ||
knownzero-addrspacecast.ll | ||
knownzero-shift.ll | ||
memory-dereferenceable.ll | ||
monotonic-phi.ll | ||
pr23011.ll | ||
signbits-extract-elt.ll |