Optimize (add x, c) to (SH*ADD (c>>b), x) if c
is not simm12 while (c>>b) is simm12 and c has
b trailing zeros.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Wouldn't this also work for the sh1add case? If so, any reason for omitting from this patch?
Comment Actions
We have already optimized (add x, 4094) to (ADDI (ADDI x, 2047), 2047), so SH1ADD is not no long needed.