[PATCH] D124618: [SelectionDAG] Use correct boolean representation in FoldConstantArithmetic

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 08:17:19 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:5587
   EVT SVT = (Opcode == ISD::SETCC ? MVT::i1 : VT.getScalarType());
+  bool NeedToExtendBackAccordingToBooleanContentRules =
+      Opcode == ISD::SETCC && SVT != VT.getScalarType();
----------------
"ExtendToBooleanContent" should be sufficient


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124618



More information about the llvm-commits mailing list