This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAGBuilder] Use getPtrExtOrTrunc in place of getZExtOrTrunc. NFC
ClosedPublic

Authored by craig.topper on May 2 2023, 12:34 PM.

Details

Summary

This getZExtOrTrunc seems to have been added when getPtrExtOrTrunc
was introduced. getPtrExtOrTrunc is currently equivalent to getZExtOrTrunc,
but could be changed for some target in the future.

Diff Detail

Event Timeline

craig.topper created this revision.May 2 2023, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2023, 12:34 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper requested review of this revision.May 2 2023, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2023, 12:34 PM
t.p.northover accepted this revision.May 19 2023, 12:07 PM

Looks reasonable.

This revision is now accepted and ready to land.May 19 2023, 12:07 PM
craig.topper edited the summary of this revision. (Show Details)May 19 2023, 12:09 PM