[llvm] [SimplifyCfg] Add nneg to zext for switch to table conversion (PR #147180)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 6 08:23:57 PDT 2025


andjo403 wrote:

> > Seems like there need to be some backend change also to remove the zext instruction see https://godbolt.org/z/Kc3MhxPdo
> 
> Might be related [b7d0c9b](https://github.com/llvm/llvm-project/commit/b7d0c9b9d8e2b5c5d6677e368e3cdaf438df294e)

but what is it that make that the zext can be removed if it is nneg?

https://github.com/llvm/llvm-project/pull/147180


More information about the llvm-commits mailing list