================
@@ -140,3 +140,92 @@ bool CombinerHelper::matchCanonicalizeFCmp(const 
MachineInstr &MI,
 
   return false;
 }
+
+bool CombinerHelper::combineMergedBFXCompare(MachineInstr &MI) const {
+  const GICmp *Cmp = cast<GICmp>(&MI);
+
+  ICmpInst::Predicate CC = Cmp->getCond();
+  if (CC != CmpInst::ICMP_EQ && CC != CmpInst::ICMP_NE)
----------------
jayfoad wrote:

Use `CmpInst::isEquality`

https://github.com/llvm/llvm-project/pull/146055
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to