[llvm] [InstCombine] optimize powi(X,Y) * X with Ofast (PR #69998)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 03:34:07 PST 2024


================
@@ -571,6 +571,50 @@ Instruction *InstCombinerImpl::foldFPSignBitOps(BinaryOperator &I) {
   return nullptr;
 }
 
+Instruction *InstCombinerImpl::foldPowiReassoc(BinaryOperator &I) {
+  Value *X, *Y, *Z;
----------------
arsenm wrote:

Sink these down where they are used, looks like shadowing now 

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


More information about the llvm-commits mailing list