[PATCH] D110488: [InstCombine] Canonicalize ((X & -X) - 1) --> (~X & (X - 1)) (PR51784)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 07:31:42 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc360955c4804: [InstCombine] Canonicalize ((X & -X) - 1) --> (~X & (X - 1)) (PR51784) (authored by RKSimon).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110488/new/

https://reviews.llvm.org/D110488

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/test/Transforms/InstCombine/add-mask-neg.ll
  llvm/test/Transforms/InstCombine/ctpop-cttz.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110488.455205.patch
Type: text/x-patch
Size: 6321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/6d057d74/attachment.bin>


More information about the llvm-commits mailing list