[llvm] [DAG] Fold (mul (sext (add_nsw x, c1)), c2) -> (add (mul (sext x), c2), c1*c2) (PR #69667)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 22:52:55 PDT 2023
topperc wrote:
I think maybe we should set `EnableExtLdPromotion = true;` in RISCVTargetLowering.cpp and implement `RISCVTTIImpl::shouldConsiderAddressTypePromotion` for RISC-V. Which enables CodeGenPrepare to do some address optimizations. I have a patch for that in my downstream I can try to extract.
https://github.com/llvm/llvm-project/pull/69667
More information about the llvm-commits
mailing list