HomePhabricator

[InstCombine] Fix vscale zext/sext optimization when vscale_range is unbounded.

Authored by sdesmalen on Aug 4 2021, 7:04 AM.

Description

[InstCombine] Fix vscale zext/sext optimization when vscale_range is unbounded.

According to the LangRef, a (vscale_range) value of 0 means unbounded.

This patch additionally cleans up the test file vscale_sext_and_zext.ll.

Details