Skip to content
Commit cf4bceba authored by Duncan Sands's avatar Duncan Sands
Browse files

Add a rather pointless InstructionSimplify transform, inspired by recent constant

folding improvements: if P points to a type of size zero, turn "gep P, N" into "P".
More generally, if a gep index type has size zero, instcombine could replace the
index with zero, but that is not done here.

llvm-svn: 119942
parent 1f86be91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment