Page MenuHomePhabricator

DAGCombiner: StoreMerging: Fix bad index calculating when adjusting mismatching vector types
ClosedPublic

Authored by MatzeB on Sep 28 2018, 6:51 PM.

Details

Summary

This fixes a wrong index calculation when merging mismatching
vector types. This simplifies the code to just use the existing
extract_{subvector|element} and a bitcast instead of bitcasting the vector
before the extract_xxx first and creating a new extract_xxx with adjusted
index after.

rdar://44584718

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB created this revision.Sep 28 2018, 6:51 PM
niravd accepted this revision.Oct 1 2018, 7:23 AM

LGTM.

This revision is now accepted and ready to land.Oct 1 2018, 7:23 AM
This revision was automatically updated to reflect the committed changes.