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
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Scalar/SCCP.cpp | ||
---|---|---|
1326 | 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. |
Comment Actions
LGTM, thanks!
llvm/lib/Transforms/Scalar/SCCP.cpp | ||
---|---|---|
1326 | It's probably not worth the trouble and we should just prioritize flipping the flag in general. |
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.