summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/PreprocessorTracker.cpp
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2014-06-08 23:49:34 +0000
committerJingyue Wu <jingyue@google.com>2014-06-08 23:49:34 +0000
commit5c7b1aed5db9749f0af83320dcb2bc3d412e1821 (patch)
tree59dcbcfb0485b594f4ab4e014e01130120ff8037 /clang-tools-extra/modularize/PreprocessorTracker.cpp
parent2d173b5302889fa5ca7d3093f164814a3363283e (diff)
downloadbcm5719-llvm-5c7b1aed5db9749f0af83320dcb2bc3d412e1821.tar.gz
bcm5719-llvm-5c7b1aed5db9749f0af83320dcb2bc3d412e1821.zip
[SeparateConstOffsetFromGEP] inbounds zext => sext for better splitting
For each array index that is in the form of zext(a), convert it to sext(a) if we can prove zext(a) <= max signed value of typeof(a). The conversion helps to split zext(x + y) into sext(x) + sext(y). Reviewed in http://reviews.llvm.org/D4060 llvm-svn: 210444
Diffstat (limited to 'clang-tools-extra/modularize/PreprocessorTracker.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud