Take assume predicates into account when visiting ssa.copy. The handling is the same as for branch predicates, with the difference that we're always on the true edge.
Details
Diff Detail
Event Timeline
llvm/lib/Transforms/Scalar/SCCP.cpp | ||
---|---|---|
1337 | We could set MayIncludeUndef=false for assumes (as undef/poison has always been UB there), but I didn't think it worthwhile to make the distinction, as we plan to flip this for branches in the future anyway. |
LGTM, thanks!
llvm/lib/Transforms/Scalar/SCCP.cpp | ||
---|---|---|
1337 | It's probably not worth the trouble and we should just prioritize flipping the flag in general. |
clang-tidy: warning: 'auto *PI' can be declared as 'const auto *PI' [llvm-qualified-auto]
not useful