https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123760
--- Comment #1 from Jeffrey A. Law <law at gcc dot gnu.org> --- I'm not seeing the regression. I see what one could expect in the initial RTL. DSE drops the store for the provided testcase. But the CSR read is still there (used by a subsequent insn). Once we get into the vsetvl pass we're able to realize the VL can be used directly in that later insn, that makes the pseudo temporarily holding VL unused and that CSR read gets eliminate in the next DCE pass. What am I missing here?
