[PATCH] D96945: [InstCombine] Add simplification of two logical and/ors

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 27 03:27:21 PST 2021


aqjune added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/select-safe-bool-transforms.ll:192
 ; CHECK-LABEL: @merge_two_logical_ors2(
-; CHECK-NEXT:    [[TMP1:%.*]] = or i1 [[X:%.*]], [[Y:%.*]]
-; CHECK-NEXT:    ret i1 [[TMP1]]
----------------
It is correct for this to be select; or i1 propagates poison which is unsafe.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96945



More information about the llvm-commits mailing list