This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] re-use bitcasted compare operands in selects (PR28001)
ClosedPublic

Authored by spatel on Oct 25 2016, 7:58 AM.

Details

Summary

These mixed bitcast patterns show up with SSE/AVX intrinsics because we bitcast function parameters to <2 x i64>.

The bitcasts obfuscate the expected min/max forms as shown in PR28001:
https://llvm.org/bugs/show_bug.cgi?id=28001#c6

Diff Detail

Repository
rL LLVM

Event Timeline

spatel updated this revision to Diff 75703.Oct 25 2016, 7:58 AM
spatel retitled this revision from to [InstCombine] re-use bitcasted compare operands in selects (PR28001).
spatel updated this object.
spatel added reviewers: majnemer, efriedma, nhaehnle.
spatel added a subscriber: llvm-commits.
zvi added a subscriber: zvi.Oct 25 2016, 8:22 AM
efriedma accepted this revision.Oct 28 2016, 4:28 PM
efriedma edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Oct 28 2016, 4:28 PM
This revision was automatically updated to reflect the committed changes.