[PATCH] D111804: [InstCombine] Don't combine CmpInst that used for verify the legality of the lshr

Mindong Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 14 18:37:25 PDT 2021


mdchen added a comment.

@lebedev.ri I think the problem is when `%0` is negative, the original code gives a definite result while the transformed IR is UB.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111804



More information about the llvm-commits mailing list