commit | e60d79faf7ef7bc4847f9e5d067af00b98dced7b | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Sun Nov 21 13:53:09 2010 +0000 |
committer | Duncan Sands <baldrick@free.fr> | Sun Nov 21 13:53:09 2010 +0000 |
tree | f04324e883cd8e197add78f0a9b8481be6a756d4 | |
parent | e58391073f6e17cd1024f737618a6f6b8d1323ce [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119942 91177308-0d34-0410-b5e6-96231b3b80d8