[llvm] [AArch64][GlobalISel] Protect against fdiv of 1 (PR #184063)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 10:51:35 PST 2026


================
@@ -6819,9 +6819,13 @@ bool CombinerHelper::matchRepeatedFPDivisor(
   if (!MI.getFlag(MachineInstr::MIFlag::FmArcp))
     return false;
 
+  auto IsOne = [this](Register X) {
----------------
arsenm wrote:

This seems like a brittle check, can you more directly defend against the CSE?

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


More information about the llvm-commits mailing list