[PATCH] D63065: [InstSimplify] Fix addo/subo undef folds (PR42209)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 15 01:19:15 PDT 2019


nikic added a comment.

@lebedev.ri It's not possible to fold to `{ i8 undef, i1 false }`. As a counter-example `uaddo(1, undef)` can never have the value `{ 0, false }`. Reaching the zero value would have required overflow, which is precluded by the overflow result. Similar cases exist for the other intrinsics as well.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63065





More information about the llvm-commits mailing list