This is an archive of the discontinued LLVM Phabricator instance.

[ConstantFolding] Refactor ConstantFoldScalarCall. NFC
ClosedPublic

Authored by bjope on Jun 16 2019, 8:22 AM.

Details

Reviewers
nikic
Summary

This patch splits ConstantFoldScalarCall into several
functions.

Benefits:

  • Reduces indentation levels and avoids long if-statements.
  • Makes it easier to add support for > 3 operands.

Event Timeline

bjope created this revision.Jun 16 2019, 8:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2019, 8:22 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic accepted this revision.Jun 19 2019, 9:40 AM

LG and already landed in rL363810.

This revision is now accepted and ready to land.Jun 19 2019, 9:40 AM
nikic closed this revision.Jun 19 2019, 9:40 AM