aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-01-24 19:32:48 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-01-24 19:32:48 +0000
commita95a7105efde0cfb58ee92eb0f43646b38720b74 (patch)
tree276c23a6e7bc69526351457c54d71dd076f037d7 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parent1ec465dbfd327c3d5930b0db9bdbe9c4269dbe13 (diff)
downloadllvm-a95a7105efde0cfb58ee92eb0f43646b38720b74.zip
llvm-a95a7105efde0cfb58ee92eb0f43646b38720b74.tar.gz
llvm-a95a7105efde0cfb58ee92eb0f43646b38720b74.tar.bz2
[IRBuilder] Remove positivity check from CreateAlignmentAssumption()
Summary: An alignment should be non-zero positive power-of-two, anything and everything else is UB. We should not have that check for all these prerequisites here, it's just UB. Also, that was likely confusing middle-end passes. While there, `CreateIntCast()` should be called with `/*isSigned*/ false`. Think about it, there are two explanations: "An alignment should be positive", therefore the sign bit is unset, so `zext` and `sext` is equivalent. Or a second one: you have `i2 0b10` - a valid alignment, now you `sext` it: `i2 0b110` - no longer valid alignment. Reviewers: craig.topper, jyknight, hfinkel, erichkeane, rjmccall Reviewed By: hfinkel, rjmccall Subscribers: hfinkel, llvm-commits Differential Revision: https://reviews.llvm.org/D54653 llvm-svn: 352089
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
0 files changed, 0 insertions, 0 deletions