[llvm] [AMDGPU] Implement IR variant of isFMAFasterThanFMulAndFAdd (PR #121465)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 2 03:07:21 PST 2025
================
@@ -16942,6 +16969,37 @@ bool SITargetLowering::checkForPhysRegDependency(
return false;
}
+/// Check if it is profitable to hoist instruction in then/else to if.
+/// Not profitable if I and it's user can form a FMA instruction
+/// because we prefer FMSUB/FMADD.
----------------
arsenm wrote:
Copy paste, these opcodes don't exist
https://github.com/llvm/llvm-project/pull/121465
More information about the llvm-commits
mailing list