[llvm-branch-commits] [llvm] [GISel] Combine compare of bitfield extracts or'd together. (PR #146055)
Jay Foad via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 30 02:11:38 PDT 2025
================
@@ -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
More information about the llvm-branch-commits
mailing list