This patch moves various checks out of ThreadEdge, making the function
always perform jump threading. The rational behind this is that I'd
like to use ThreadEdge without its checks in my upcoming patch.
Details
Details
- Reviewers
wmi - Commits
- rG4f5d931c5813: [JumpThreading] Refactor ThreadEdge
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Maybe we can rename current ThreadEdge to TryThreadEdge and let TryThreadEdge call ThreadEdge to do the transformation?
Comment Actions
I think it would be good to keep the checks as assertions in ThreadEdge, to make sure the pre-conditions hold if it gets multiple users.