HomePhabricator

[InstSimplify] Constant fold icmp of gep

Authored by nikic on Feb 29 2020, 2:41 AM.

Description

[InstSimplify] Constant fold icmp of gep

InstSimplify can fold icmps of gep where the base pointers are the
same and the offsets are constant. It does so by constructing a
constant expression icmp and assumes that it gets folded -- but
this doesn't actually happen, because GEP expressions can usually
only be folded by the target-dependent constant folding layer.
As such, we need to explicitly invoke it here.

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

Details

Committed
nikicMar 4 2020, 2:16 PM
Differential Revision
D75407: [InstSimplify] Constant fold icmp of gep
Parents
rGf6981ac595cc: [mlir][vulkan-runner] Add basic timing for compute pipeline
Branches
Unknown
Tags
Unknown