[Mlir-commits] [mlir] [mlir][LLVMIR] Add folder pass for `llvm.inttoptr` and `llvm.ptrtoint` (PR #143066)

Mehdi Amini llvmlistbot at llvm.org
Fri Jun 6 03:55:42 PDT 2025


joker-eph wrote:

> This fold is incorrect, because the resulting pointer may have different provenance. We probably should not copy known-incorrect folds from LLVM to MLIR...

Ouch! I was afraid of provenance issue, and trusted InstCombine as a reference to assume this one is OK :(
Thanks for chiming in here though!

https://github.com/llvm/llvm-project/pull/143066


More information about the Mlir-commits mailing list