summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-21 20:18:36 +0000
committerDan Gohman <gohman@apple.com>2009-04-21 20:18:36 +0000
commite14efcc9f40d0ef0ed2ed4d5afd6e718b7cb5c5d (patch)
treea74eedf6430dec1761db27cf712a6e5e3a4eb1cc /clang/lib/CodeGen/CodeGenModule.cpp
parenta8e8bc24b360fdc32338dd3ab687fdce19c0a9af (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud