commit | 578ccf81e5b94965e3ce8b4eadb6834e39f5f41d | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Apr 21 20:18:36 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Apr 21 20:18:36 2009 +0000 |
tree | a7eb49d0dc6de05f54e2a0c9f0b7ada436ce6b5e | |
parent | 4558f481b83a3c14ad5f1077b053a748a3203059 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69704 91177308-0d34-0410-b5e6-96231b3b80d8