This is an archive of the discontinued LLVM Phabricator instance.

[CodeGenPrepare][NFC] Replace GEP's offset computation with collectOffset
Needs ReviewPublic

Authored by StephenFan on May 22 2023, 8:55 PM.

Details

Diff Detail

Event Timeline

StephenFan created this revision.May 22 2023, 8:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 8:55 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.May 22 2023, 8:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 8:55 PM

There is some small compile-time impact: https://llvm-compile-time-tracker.com/compare.php?from=d55982ac8cced9e5d4816494658d90c84d0b4301&to=e8999647fc7d8d3122a01871231f8dc306870f30&stat=instructions:u Probably either due to the round-trip through APInt, or the need to allocate the MapVector.