This is an archive of the discontinued LLVM Phabricator instance.

Minor refactoring regarding Cast::isNoopCast(), NFC
ClosedPublic

Authored by uabelho on Oct 3 2017, 5:22 AM.

Details

Summary

FastISel::hasTrivialKill() was the only user of the "IntPtrTy" version of
Cast::isNoopCast(). According to review comments in D37894 we could instead
use the "DataLayout" version of the method, and thus get rid of the
"IntPtrTy" versions of isNoopCast() completely.

With the above done, the remaining isNoopCast() could then be simplified
a bit more.

Diff Detail

Repository
rL LLVM

Event Timeline

uabelho created this revision.Oct 3 2017, 5:22 AM
arsenm accepted this revision.Oct 4 2017, 5:00 PM

LGTM

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