aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/MemoryDependenceAnalysis.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-21 13:53:09 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-21 13:53:09 +0000
commite60d79faf7ef7bc4847f9e5d067af00b98dced7b (patch)
treef04324e883cd8e197add78f0a9b8481be6a756d4 /lib/Analysis/MemoryDependenceAnalysis.cpp
parente58391073f6e17cd1024f737618a6f6b8d1323ce (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
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions