Handle "X + ~X" -> "-1" in the function Value *Reassociate::OptimizeAdd(Instruction *I, SmallVectorImpl<ValueEntry> &Ops);
This patch implements:
TODO: We could handle "X + ~X" -> "-1" if we wanted, since "-X = ~X+1".
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I think this is fine. Do you need someone to commit it for you? If so, would you mind updating the patch without whitespace-only changes? They make the diff harder to read.
Comment Actions
Hi Benjamin,
Thanks for the review.
No I dont have commit access as of now, would be helpful if
you could commit it for me. Will request for one soon!
Updated patch removing the whitespace-only changes, those were
introduced on running clang-format.
Also patched to an updated revision.
Please commit it on my behalf.
Thanks again for the help!
Rahul