There are 3 operands of maddld, (add (mul %1, %2), %3) and sometimes they are constant.
If there is constant operand, it takes extra li to materialize the operand, and one more extra register too.
So it's not profitable to use maddld to optimize mul-add pattern.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM except one minor formating issue. Thansk for fixing this.
llvm/test/CodeGen/PowerPC/maddld.ll | ||
---|---|---|
118 | remove the unnescessary empty lines. |
remove the unnescessary empty lines.