[llvm] [DXIL] Implement pow lowering (PR #86733)
Joshua Batista via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 16:52:00 PDT 2024
================
@@ -197,6 +198,26 @@ static bool expandLog10Intrinsic(CallInst *Orig) {
return expandLogIntrinsic(Orig, numbers::ln2f / numbers::ln10f);
}
+static bool expandPowIntrinsic(CallInst *Orig) {
+
+ Value *X = Orig->getOperand(0);
+ Value *Y = Orig->getOperand(1);
+ Type *Ty = X->getType();
+ IRBuilder<> Builder(Orig->getParent());
+ Builder.SetInsertPoint(Orig);
+
+ auto *Log2Call =
----------------
bob80905 wrote:
Ah, for a second I thought the `dxil-op-lower` pass would be final, it makes sense that optimizations could take place afterwards too. All good 👍
https://github.com/llvm/llvm-project/pull/86733
More information about the llvm-commits
mailing list