[all-commits] [llvm/llvm-project] 50aacb: [InstCombine] Support ptrtoint of gep folds for ch...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Apr 28 00:02:52 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 50aacb9e1b51811f12cb017719678962411c50dd
https://github.com/llvm/llvm-project/commit/50aacb9e1b51811f12cb017719678962411c50dd
Author: Nikita Popov <npopov at redhat.com>
Date: 2025-04-28 (Mon, 28 Apr 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
M llvm/test/Transforms/InstCombine/cast_ptr.ll
Log Message:
-----------
[InstCombine] Support ptrtoint of gep folds for chain of geps (#137323)
Support the ptrtoint(gep null, x) -> x and ptrtoint(gep inttoptr(x), y)
-> x+y folds for the case where there is a chain of geps that ends in
null or inttoptr. This avoids some regressions from #137297.
While here, also be a bit more careful about edge cases like pointer to
vector splats and mismatched pointer and index size.
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