[all-commits] [llvm/llvm-project] 6c4d12: [IR] Do not combine ptrtoaddr and trunc
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Oct 21 06:13:08 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6c4d121e7f963d1a53b5fa0aee8832f2b260248b
https://github.com/llvm/llvm-project/commit/6c4d121e7f963d1a53b5fa0aee8832f2b260248b
Author: Nikita Popov <npopov at redhat.com>
Date: 2025-10-21 (Tue, 21 Oct 2025)
Changed paths:
M llvm/lib/IR/Instructions.cpp
A llvm/test/Transforms/InstCombine/ptrtoaddr.ll
Log Message:
-----------
[IR] Do not combine ptrtoaddr and trunc
The ptrtoaddr result type is required to match the pointer address
width. This means that, unlikely with ptrtoint, it's not legal to
merge a ptrtoint and trunc. This previously resulted in an IR
verifier failure.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list