This is an archive of the discontinued LLVM Phabricator instance.

[FuncSpec][NFC] Sink cast into function.
ClosedPublic

Authored by labrinea on Jul 13 2023, 4:19 AM.

Details

Summary

Before looking up a value in the map of known constants we attempt
to dynamically cast it. The code looks cleaner if we move the cast
inside findConstantFor(), where the look up happens.

Diff Detail

Event Timeline

labrinea created this revision.Jul 13 2023, 4:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2023, 4:19 AM
labrinea requested review of this revision.Jul 13 2023, 4:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2023, 4:19 AM
ChuanqiXu accepted this revision.Jul 13 2023, 6:45 PM
This revision is now accepted and ready to land.Jul 13 2023, 6:45 PM
This revision was automatically updated to reflect the committed changes.