[llvm] [DAGCombine] Remove oneuse restrictions for RISCV in folding (shl (add_nsw x, c1)), c2) and folding (shl(sext(add x, c1)), c2) in some scenarios (PR #101294)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 11:53:48 PST 2024


topperc wrote:

For https://godbolt.org/z/o8GdMKrae, the gcc code for `add_shl_moreoneuse_store` looks like a direct translation of the original code. Is something in the middle end changing the IR and making it produce worse code?

https://github.com/llvm/llvm-project/pull/101294


More information about the llvm-commits mailing list