[llvm] [GlobalISel] avoid G_TRUNC with floating-point G_MERGE_VALUES source (PR #206733)
Nathan Corbyn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 01:59:40 PDT 2026
================
@@ -292,29 +292,40 @@ class LegalizationArtifactCombiner {
if (!DstTy.isScalar() || !MergeSrcTy.isScalar())
return false;
+ // G_TRUNC/G_MERGE_VALUES operate on the raw bit pattern - if the merge
+ // feeds us float sources, reinterpret them to integer of the same size
----------------
cofibrant wrote:
```suggestion
// feeds us float sources, reinterpret them as integers of the same size
```
https://github.com/llvm/llvm-project/pull/206733
More information about the llvm-commits
mailing list