aboutsummaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader/BitReader.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2013-04-02 09:38:08 -0700
committerDerek Schuff <dschuff@chromium.org>2013-04-02 09:38:08 -0700
commit99681c41b0bf46e9973cf4b3ef6d0b792103f29d (patch)
treef479307a68fa07023194eb9c0389cf8f5165db47 /lib/Bitcode/Reader/BitReader.cpp
parent26535c655b240324d5cdfcc61bec85d401f71214 (diff)
Disable shift-compare instcombine optimization for NaCl.
This is one of at least 2 optimizations which introduce non-power-of-two integer sizes, which we don't want to allow in the PNaCl stable wire format. This transforms (icmp pred iM (shl iM %value, N), ConstInt) -> (icmp pred i(M-N) (trunc %value iM to i(N-N)), (trunc (ConstInt >> N)) and reduces the size of the compare and its operands. R=mseaborn@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3360 Review URL: https://codereview.chromium.org/13182003
Diffstat (limited to 'lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions