[llvm] 8cc862c - [AMDGPU] expand-fp: always report modifications (#163153)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 13 08:21:06 PDT 2025
Author: Frederik Harwath
Date: 2025-10-13T15:21:02Z
New Revision: 8cc862ce3bd51d1fe8ff84c35aee03457077ac54
URL: https://github.com/llvm/llvm-project/commit/8cc862ce3bd51d1fe8ff84c35aee03457077ac54
DIFF: https://github.com/llvm/llvm-project/commit/8cc862ce3bd51d1fe8ff84c35aee03457077ac54.diff
LOG: [AMDGPU] expand-fp: always report modifications (#163153)
The last change to the pass in PR #158588 lost the assignment to the
"Modified" variable for one of the pass optimizations.
Add it back. This fixes the test failure in
`CodeGen/AMDGPU/itofp.i128.bf.ll` (in a
`LLVM_ENABLE_EXPENSIVE_CHECKS=ON` build).
Added:
Modified:
llvm/lib/CodeGen/ExpandFp.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/ExpandFp.cpp b/llvm/lib/CodeGen/ExpandFp.cpp
index c500357c396c6..04c700869cd69 100644
--- a/llvm/lib/CodeGen/ExpandFp.cpp
+++ b/llvm/lib/CodeGen/ExpandFp.cpp
@@ -1036,6 +1036,7 @@ static bool runImpl(Function &F, const TargetLowering &TLI,
continue;
addToWorklist(I, Worklist);
+ Modified = true;
break;
}
default:
More information about the llvm-commits
mailing list