[all-commits] [llvm/llvm-project] 00bfab: [LegalizeTypes] Don't assume fshl/fshr shift amoun...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sat May 7 11:52:27 PDT 2022
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-05-07 (Sat, 07 May 2022)
[LegalizeTypes] Don't assume fshl/fshr shift amount type matches the other operands.
Like other shifts, the type isn't required to match. We shouldn't
assume we can call ZExtPromotedInteger.
I tested the PromoteIntOp_FunnelShift locally by removing the promotion
of the shift amount from PromoteIntRes_FunnelShift. But with the final
version of this patch it is never executed on any tests.
Differential Revision: https://reviews.llvm.org/D125106
More information about the All-commits