[llvm-branch-commits] [llvm] InstCombine: Handle fptrunc in SimplifyDemandedFPClass (PR #175421)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Jan 11 01:34:41 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
The build failed before running any tests. Click on a failure below to see the details.
<details>
<summary>lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstCombineSimplifyDemanded.cpp.o</summary>
```
FAILED: lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstCombineSimplifyDemanded.cpp.o
sccache /opt/llvm/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/Transforms/InstCombine -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/InstCombine -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstCombineSimplifyDemanded.cpp.o -MF lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstCombineSimplifyDemanded.cpp.o.d -o lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstCombineSimplifyDemanded.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp:2659:15: error: no member named 'sqrt' in 'llvm::KnownFPClass'; did you mean 'sort'?
2659 | Known = KnownFPClass::sqrt(KnownSrc, Mode);
| ^~~~~~~~~~~~~~~~~~
| sort
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1634:13: note: 'sort' declared here
1634 | inline void sort(IteratorTy Start, IteratorTy End) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp:2659:15: error: no matching function for call to 'sort'
2659 | Known = KnownFPClass::sqrt(KnownSrc, Mode);
| ^~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1634:13: note: candidate template ignored: deduced conflicting types for parameter 'IteratorTy' ('KnownFPClass' vs. 'DenormalMode')
1634 | inline void sort(IteratorTy Start, IteratorTy End) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp:2659:13: error: no viable overloaded '='
2659 | Known = KnownFPClass::sqrt(KnownSrc, Mode);
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/KnownFPClass.h:25:8: note: candidate function (the implicit copy assignment operator) not viable: cannot convert argument of incomplete type 'void' to 'const KnownFPClass' for 1st argument
25 | struct KnownFPClass {
| ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/KnownFPClass.h:25:8: note: candidate function (the implicit move assignment operator) not viable: cannot convert argument of incomplete type 'void' to 'KnownFPClass' for 1st argument
25 | struct KnownFPClass {
| ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp:2722:29: error: no member named 'roundToIntegral' in 'llvm::KnownFPClass'
2722 | Known = KnownFPClass::roundToIntegral(KnownSrc, IID == Intrinsic::trunc,
| ^~~~~~~~~~~~~~~
4 errors generated.
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/175421
More information about the llvm-branch-commits
mailing list