HomePhabricator

[InstSimplify] Fold insertelement vec, poison, idx into vec

Authored by aqjune on Jan 3 2021, 9:02 AM.

Description

[InstSimplify] Fold insertelement vec, poison, idx into vec

This is a simple patch that adds folding from insertelement vec, poison, idx into vec.

Alive2 proof: https://alive2.llvm.org/ce/z/2y2vbC

Reviewed By: nikic

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

Details

Committed
aqjuneJan 6 2021, 5:10 PM
Reviewer
nikic
Differential Revision
D93994: [InstSimplify] Fold insertelement vec, poison, idx into vec
Parents
rGc95f39891a28: [Constant] Add tests for ConstantVector::get (NFC)
Branches
Unknown
Tags
Unknown