This patch adds a conditional binary constant folder which allow to exit when the constants not meet the fold condition. And use it for PowFOp to make it able to fold the constant dense.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
This duplicates a lot of code with constFoldBinaryOp. Can you change the latter to call into this function?