This is an archive of the discontinued LLVM Phabricator instance.

[IR] SelectInst: add swapValues() utility
ClosedPublic

Authored by lebedev.ri on Jul 31 2019, 9:25 AM.

Details

Summary

Sometimes we need to swap true-val and false-val of a SelectInst.
Having a function for that is nicer than hand-writing it each time.

Diff Detail

Repository
rL LLVM

Event Timeline

lebedev.ri created this revision.Jul 31 2019, 9:25 AM
jdoerfert accepted this revision.Jul 31 2019, 9:35 AM
jdoerfert added a subscriber: jdoerfert.

LGTM

This revision is now accepted and ready to land.Jul 31 2019, 9:35 AM
This revision was automatically updated to reflect the committed changes.