diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-21 20:18:36 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-21 20:18:36 +0000 |
commit | e14efcc9f40d0ef0ed2ed4d5afd6e718b7cb5c5d (patch) | |
tree | a74eedf6430dec1761db27cf712a6e5e3a4eb1cc /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | a8e8bc24b360fdc32338dd3ab687fdce19c0a9af (diff) | |
download | bcm5719-llvm-e14efcc9f40d0ef0ed2ed4d5afd6e718b7cb5c5d.tar.gz bcm5719-llvm-e14efcc9f40d0ef0ed2ed4d5afd6e718b7cb5c5d.zip |
When turning (ashr(shl(x, n), n)) into sext(trunc(x)), the width of the
type to truncate to should be the number of bits of the value that are
preserved, not the number that are clobbered with sign-extension.
This fixes regressions in ldecod.
llvm-svn: 69704
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions