[llvm] [DXIL] Implement pow lowering (PR #86733)
Joshua Batista via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 13:32:58 PDT 2024
================
@@ -197,6 +198,26 @@ static bool expandLog10Intrinsic(CallInst *Orig) {
return expandLogIntrinsic(Orig, numbers::ln2f / numbers::ln10f);
}
+static bool expandPowIntrinsic(CallInst *Orig) {
----------------
bob80905 wrote:
It's strange how the function has no choice but to return true. I see other similar functions do the same. Would it break convention to instead have this be a void function, and directly return true at the call site? I think it would be less confusing.
https://github.com/llvm/llvm-project/pull/86733
More information about the llvm-commits
mailing list