summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-29 12:22:27 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-29 12:22:27 +0000
commit4e1f5e07348f2b3856873e82f2d702b177575903 (patch)
tree82aca89e608227afde9457856e33a9170a1822e8 /clang/lib/Frontend/CompilerInvocation.cpp
parent2c2b1f6d04b87fa0d0af1364c67fe8fcfc763503 (diff)
downloadbcm5719-llvm-4e1f5e07348f2b3856873e82f2d702b177575903.tar.gz
bcm5719-llvm-4e1f5e07348f2b3856873e82f2d702b177575903.zip
[PowerPC] Fix for PR35688 - handle out-of-range values for r+r to r+i conversion
Revision 320791 introduced a pass that transforms reg+reg instructions to reg+imm if they're fed by "load immediate". However, it didn't handle out-of-range shifts correctly as reported in PR35688. This patch fixes that and therefore the PR. Furthermore, there was undefined behaviour in the patch where the RHS of an initialization expression was 32 bits and constant `1` was shifted left 32 bits. This was fixed by ensuring the RHS is 64 bits just like the LHS. Differential Revision: https://reviews.llvm.org/D41369 llvm-svn: 321551
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud