[llvm] [GlobalIsel] Combine ADDE (PR #82413)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 23:53:27 PST 2024


================
@@ -6906,3 +6923,195 @@ bool CombinerHelper::matchOr(MachineInstr &MI, BuildFnTy &MatchInfo) {
 
   return false;
 }
+
+bool CombinerHelper::isZExtOrTruncLegal(LLT ToTy, LLT FromTy) const {
----------------
aemerson wrote:

If you're calling the variants `OrBeforeLegalizer` you should also make it clear in this function's name. Sometimes we want to know even before legalization whether something is actually legal.

https://github.com/llvm/llvm-project/pull/82413


More information about the llvm-commits mailing list