[llvm] [RISCV] Correct RISCVTTIImpl::getIntImmCostInst for Zba (PR #128174)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 09:53:25 PST 2025
topperc wrote:
> > The description is true but won't the AND get deleted by SelectionDAG after type legalization splits it? If the constant gets hoisted that can't happen.
>
> Yes it should be deleted. However, this has nothing to do with the `Zba` extension. For RV32 we should return `TCC_Free`. Or?
yes we should return TCC_Free for RV32.
https://github.com/llvm/llvm-project/pull/128174
More information about the llvm-commits
mailing list