This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Provide more test cases for cast-folding [NFC]
ClosedPublic

Authored by mreisinger on Jul 20 2016, 2:29 AM.

Details

Summary

In r275989 we enabled the folding of logic(cast(icmp), cast(icmp)) to cast(logic(icmp, icmp)). Here we add more test cases to assure this folding works for all logical operations and/or/xor.

Diff Detail

Event Timeline

mreisinger updated this revision to Diff 64648.Jul 20 2016, 2:29 AM
mreisinger retitled this revision from to [InstCombine] Provide more test cases for cast-folding [NFC].
mreisinger updated this object.
mreisinger added a reviewer: grosser.
mreisinger added a subscriber: llvm-commits.
mreisinger updated this object.Jul 20 2016, 2:41 AM
grosser accepted this revision.Jul 20 2016, 4:32 AM
grosser edited edge metadata.
This revision is now accepted and ready to land.Jul 20 2016, 4:32 AM