commit | 391016025a72612577cc7b8046fed60bed1aa858 | [log] [tgz] |
---|---|---|
author | James Molloy <james.molloy@arm.com> | Thu Mar 01 14:32:18 2012 +0000 |
committer | James Molloy <james.molloy@arm.com> | Thu Mar 01 14:32:18 2012 +0000 |
tree | cf06ddbdf5cbcc731b37221368bf0e31c4f04165 | |
parent | ccc8d3ba06408feff0ca6e58973c20d15010e3fc [diff] |
Fix a codegen fault in which log2 or exp2 could be dead-code eliminated even though they could have sideeffects. Only allow log2/exp2 to be converted to an intrinsic if they are declared "readnone". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151807 91177308-0d34-0410-b5e6-96231b3b80d8