[all-commits] [llvm/llvm-project] 084f96: [SelectionDAG] Constant fold (sext_inreg undef, VT...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu May 5 09:45:53 PDT 2022
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-05-05 (Thu, 05 May 2022)
[SelectionDAG] Constant fold (sext_inreg undef, VT) to 0 instead of undef.
The result of sign_extend_inreg needs to have as many sign bits
as requested by the VT argument. The easiest way to guarantee this
is to fold it to 0.
SystemZ test was modified to avoid using undef.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D124696
More information about the All-commits