This is an archive of the discontinued LLVM Phabricator instance.

Fix using wrong result type for setcc.
ClosedPublic

Authored by arsenm on Apr 16 2014, 5:26 PM.

Details

Reviewers
arsenm
resistor
Summary

When reducing the bitwidth of a comparison against a constant, the
original setcc's result type was used, which was incorrect.

No test since I don't think any other in tree targets change the
bitwidth of the setcc type depending on the bitwidth of the compared type.

Diff Detail

Event Timeline

arsenm accepted this revision.May 7 2014, 11:34 AM
arsenm added a reviewer: arsenm.

r208236

This revision is now accepted and ready to land.May 7 2014, 11:34 AM
arsenm closed this revision.May 7 2014, 11:34 AM