This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Remove some dead code from vector scalaring
ClosedPublic

Authored by craig.topper on Nov 25 2017, 12:14 AM.

Details

Summary

Currently ScalarizeVecRes_SETCC checks for the result type being a vector and jumps to ScalarizeVecRes_VSETCC. But if we're scalarizing a vector result, aren't we guaranteed to be looking at a vector type?

This patch deletes the current ScalarizeVecRes_SETCC and renames ScalarizeVecRes_VSETCC to ScalarizeVecRes_SETCC.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Nov 25 2017, 12:14 AM
RKSimon accepted this revision.Nov 25 2017, 6:49 AM

LGTM

This revision is now accepted and ready to land.Nov 25 2017, 6:49 AM
This revision was automatically updated to reflect the committed changes.