Skip to content
Commit e14efcc9 authored by Dan Gohman's avatar Dan Gohman
Browse files

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
parent a8e8bc24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment