aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-12-13 13:40:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-12-13 13:40:24 +0000
commite723bb10b02c59ab3162e9725fd0131b4337b943 (patch)
tree46cd650907e49cad39140dffebb87e31fddc5ca5 /llvm/lib/CodeGen/CodeGen.cpp
parent879c552dd951faaad42c68723fcbbf32f1409f20 (diff)
downloadllvm-e723bb10b02c59ab3162e9725fd0131b4337b943.zip
llvm-e723bb10b02c59ab3162e9725fd0131b4337b943.tar.gz
llvm-e723bb10b02c59ab3162e9725fd0131b4337b943.tar.bz2
X86: When lowering shl_parts, don't emit shift amounts larger than the bit width.
While it's safe for the X86-specific shift nodes, dag combining will kill generic nodes. Insert an AND to make it safe, isel will nuke it as x86's shift instructions have an implicit AND. Fixes PR16108, which contains a contraption to hit this case in between constant folders. llvm-svn: 197228
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions