diff options
| author | Matthias Braun <matze@braunis.de> | 2025-03-31 16:06:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-31 16:06:51 -0700 |
| commit | 5d1f27f349f5b63646c714e8c26cc5716a4b5abc (patch) | |
| tree | 53ffd447ae326cb1e58d49af7d788a12d08aadbc /lldb/source/Plugins/ScriptInterpreter/Python | |
| parent | 46457ed1dfbfaf4ccc9245813450ba3fd561f067 (diff) | |
| download | llvm-5d1f27f349f5b63646c714e8c26cc5716a4b5abc.zip llvm-5d1f27f349f5b63646c714e8c26cc5716a4b5abc.tar.gz llvm-5d1f27f349f5b63646c714e8c26cc5716a4b5abc.tar.bz2 | |
GlobalISel: neg (and x, 1) --> SIGN_EXTEND_INREG x, 1 (#131367)
The pattern
```LLVM
%shl = shl i32 %x, 31
%ashr = ashr i32 %shl, 31
```
would be combined to `G_EXT_INREG %x, 1` by GlobalISel. However
InstCombine normalizes this pattern to:
```LLVM
%and = and i32 %x, 1
%neg = sub i32 0, %and
```
This adds a combiner for this variant as well.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
