HomePhabricator

[ConstProp] Handle insertelement constants

Authored by aeubanks on Aug 10 2020, 12:53 PM.

Description

[ConstProp] Handle insertelement constants

Previously ConstantFoldExtractElementInstruction() would only work with
insertelement instructions, not contants. This properly handles
insertelement constants as well.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D85865