[llvm] [DXIL] Implement pow lowering (PR #86733)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 14:25:09 PDT 2024


================
@@ -197,6 +198,26 @@ static bool expandLog10Intrinsic(CallInst *Orig) {
   return expandLogIntrinsic(Orig, numbers::ln2f / numbers::ln10f);
 }
 
+static bool expandPowIntrinsic(CallInst *Orig) {
----------------
farzonl wrote:

@bob80905  If you feel strongly about this you or I could put up a pr converting the expansion functions to  void and returning true in the switch statements.  I don't think aesthetics should trump understanding of intent of the bools. 

https://github.com/llvm/llvm-project/pull/86733


More information about the llvm-commits mailing list