aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitHeaderSearch.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-03-25 20:43:07 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-03-25 20:43:07 +0000
commit2741aae80be59828d8827e9cfed383351ffa880e (patch)
tree6b3713e209ae4139d3887ac319a7d8ce4358fc49 /clang/lib/Frontend/InitHeaderSearch.cpp
parent6cc6e60b6ecfbc787173d2e8dad4e5f74126a0cd (diff)
downloadllvm-2741aae80be59828d8827e9cfed383351ffa880e.zip
llvm-2741aae80be59828d8827e9cfed383351ffa880e.tar.gz
llvm-2741aae80be59828d8827e9cfed383351ffa880e.tar.bz2
Switch the pointer-difference simplification logic to only work with
inbounds GEPs. This isn't really necessary for simplifying pointer differences, but I'm planning to re-use the same code to simplify pointer comparisons where it is necessary. Since real code almost exclusively uses inbounds GEPs, it doesn't seem worth it to support the extra complexity of turning it on and off. If anyone would like that back, feel free to shout. Note that instcombine will still catch any of these patterns. llvm-svn: 153418
Diffstat (limited to 'clang/lib/Frontend/InitHeaderSearch.cpp')
0 files changed, 0 insertions, 0 deletions