This is an archive of the discontinued LLVM Phabricator instance.

[RS4GC] Simplify handling of Constants in findBaseDefiningValue(). NFC.
ClosedPublic

Authored by mjacob on Dec 29 2015, 3:14 PM.

Details

Summary

Previously there were three conditionals, checking for global
variables, undef values and everything constant except these two, all three
returning the same value. This commit replaces them by one conditional.

Diff Detail

Event Timeline

mjacob updated this revision to Diff 43763.Dec 29 2015, 3:14 PM
mjacob retitled this revision from to [RS4GC] Simplify handling of Constants in findBaseDefiningValue(). NFC..
mjacob updated this object.
mjacob added a reviewer: reames.
mjacob added a subscriber: llvm-commits.
reames accepted this revision.Jan 4 2016, 3:23 PM
reames edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jan 4 2016, 3:23 PM
mjacob closed this revision.Jan 4 2016, 8:09 PM