This is the demorganed version of the case we already handle for the OR of iszero.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Nice! I was wondering if that was missing.
Can you make a helper function to avoid the code duplication?
Add the tests as a pre-commit, so we just get the diffs?
Comment Actions
Will do.
Can I change foldOrOfIcmps to take CxtI by reference so we discourage anyone from passing nullptr.
Comment Actions
I have no objections. I'd go full-strength and fix all of the params to be refs in all of the related functions, so everything is uniform. :)
I'd really like to refactor (And/Or)OfICmps, so we have the deMorgan'd versions of each fold together or adjacent. That way, we'll more easily know what's missing from either side.