This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Remove unused function createInstructionCombiningPass
ClosedPublic

Authored by kazu on Jun 10 2023, 10:25 PM.

Details

Summary

The last use was removed by:

commit 934c82d31801e65aa3bbe99a0e64f903621c2e04
Author: Florian Hahn <flo@fhahn.com>
Date:   Fri Feb 24 13:39:32 2023 +0100

Once I remove createInstructionCombiningPass, then:

InstructionCombiningPass::InstructionCombiningPass(unsigned MaxIterations)

becomes unused. Once I remove that:

InstructionCombiningPass::MaxIterations is always initialized with
InstCombineDefaultMaxIterations, so this patch does the constant
propagation and removes InstructionCombiningPass::MaxIterations as
well.

Diff Detail

Event Timeline

kazu created this revision.Jun 10 2023, 10:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2023, 10:25 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
kazu requested review of this revision.Jun 10 2023, 10:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2023, 10:25 PM
This revision is now accepted and ready to land.Jun 11 2023, 12:18 AM