[llvm] Fix trunc nonstandard int types (PR #191393)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 04:08:14 PDT 2026


https://github.com/idubinov created https://github.com/llvm/llvm-project/pull/191393

In some cases, the trunc dst type was widened to higher bit size, which changes behavior of the instruction.

Now, in case of need of widening, the trunc instruction is replaced with AND with appropriate mask.

Assisted-by: Claude Code.

The server is unavailable at this time. Please wait a few minutes before you try again.


More information about the llvm-commits mailing list