This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Fold (vextract v, (sext (trunc i))) -> (vextract v, i)
AbandonedPublic

Authored by Bigcheese on Apr 24 2014, 3:43 PM.

Details

Reviewers
grosbach
nadav
Summary

EXTRACT_VECTOR_ELT has undefined behavior for element indices greater than
the input vector width.

Diff Detail

Event Timeline

Bigcheese updated this revision to Diff 8820.Apr 24 2014, 3:43 PM
Bigcheese retitled this revision from to [DAGCombiner] Fold (vextract v, (sext (trunc i))) -> (vextract v, i).
Bigcheese updated this object.
Bigcheese edited the test plan for this revision. (Show Details)
Bigcheese added reviewers: grosbach, nadav.
Bigcheese added a subscriber: Unknown Object (MLST).
nadav edited edge metadata.Apr 24 2014, 4:36 PM

LGTM.

Bigcheese abandoned this revision.Apr 25 2014, 7:18 PM

Realized that this optimization is invalid. Replaced by http://reviews.llvm.org/D3519 .