[PATCH] D86383: [GlobalISel] Fold xor(cmp(pred, _, _), 1) -> cmp(inverse(pred), _, _)

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 15:09:08 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/Utils.cpp:708
+bool llvm::isConstTrueVal(const TargetLowering &TLI, int64_t Val) {
+  switch (TLI.getBooleanContents(false, false)) {
+  case TargetLowering::UndefinedBooleanContent:
----------------
One of these parameters is isVector, which is getting lost here


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86383



More information about the llvm-commits mailing list