HomePhabricator

[InsCombine] Fix a few remaining vec transforms to use poison instead of undef

Authored by aqjune on May 31 2021, 2:40 AM.

Description

[InsCombine] Fix a few remaining vec transforms to use poison instead of undef

This is a patch that replaces shufflevector and insertelement's placeholder value with poison.

Underlying motivation is to fix the semantics of shufflevector with undef mask to return poison instead
(D93818)
The consensus has been made in the late 2020 via mailing list as well as the thread in https://bugs.llvm.org/show_bug.cgi?id=44185 .

This patch is a simple syntactic change to the existing code, hence directly pushed as a commit.

Details

Committed
aqjuneMay 31 2021, 2:47 AM
Parents
rG222aeb4d51a4: [DSE] Remove stores in the same loop iteration
Branches
Unknown
Tags
Unknown