This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Support known true/false SimplifySetCC cases for comparing against vector splats of constants.
ClosedPublic

Authored by craig.topper on Feb 19 2018, 2:58 PM.

Details

Summary

This is split off from D42948 and includes just the cases that constant fold to true or false. It also includes some refactoring to keep predicate checks together.

This supports things like

(setcc uge X, 0) -> true

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Feb 19 2018, 2:58 PM
spatel accepted this revision.Feb 20 2018, 1:18 PM

LGTM.

This revision is now accepted and ready to land.Feb 20 2018, 1:18 PM
This revision was automatically updated to reflect the committed changes.