HomePhabricator

[InstCombine] Fold ptrtoint(gep i8 null, x) -> x

Authored by arichardson on Sep 28 2021, 8:06 AM.

Description

[InstCombine] Fold ptrtoint(gep i8 null, x) -> x

This commit is the InstCombine follow-up to the previous constant-folding
change that enables noticeable optimizations for CHERI-enabled targets.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D110247

Details

Committed
arichardsonSep 28 2021, 9:57 AM
Reviewer
nikic
Differential Revision
D110247: [InstCombine] Fold ptrtoint(gep null) with a variable index
Parents
rG9049a1c61e9a: [ConstantFolding] Fold ptrtoint(gep i8 null, x) -> x
Branches
Unknown
Tags
Unknown