[InstSimplify] Move more folds into simplifyDivRem() (NFCI)
authorNikita Popov <npopov@redhat.com>
Mon, 24 Apr 2023 12:25:45 +0000 (14:25 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 24 Apr 2023 12:26:55 +0000 (14:26 +0200)
commit22eb8342bf4698c4e2ed0ca4d3013069c4722872
tree6ac9d5d8b33b163e81ebf7e145423e5dcd322e68
parent29d24ed394dc846c027f6fb9b522e04dd72d40d7
[InstSimplify] Move more folds into simplifyDivRem() (NFCI)

The threading folds are the same for div/rem and the isDivZero()
fold only differes in the return value.

This should be NFC, but as this slightly shuffles around the
order of the folds it might not be exactly the same.
llvm/lib/Analysis/InstructionSimplify.cpp