[llvm] [AMDGPU] expand-fp: Change frem expansion criterion (PR #158285)
Frederik Harwath via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 02:49:18 PDT 2025
================
@@ -1000,8 +1008,8 @@ static bool runImpl(Function &F, const TargetLowering &TLI,
if (ExpandFpConvertBits != llvm::IntegerType::MAX_INT_BITS)
MaxLegalFpConvertBitWidth = ExpandFpConvertBits;
- if (MaxLegalFpConvertBitWidth >= llvm::IntegerType::MAX_INT_BITS)
----------------
frederik-h wrote:
I have added a function that checks if the pass needs to expand any frem instructions. This is used to return from the pass before any instructions are visited if no expansions are necessary.
https://github.com/llvm/llvm-project/pull/158285
More information about the llvm-commits
mailing list