[llvm] [AMDGPU] expand-fp: Change frem expansion criterion (PR #158285)

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 17 00:49:09 PDT 2025


================
@@ -101,7 +101,7 @@ class FRemExpander {
     EVT VT = EVT::getEVT(Ty);
     assert(VT.isSimple() && "Can expand only simple types");
 
-    return find(ExpandableTypes, VT.getSimpleVT());
+    return find(ExpandableTypes, VT.getSimpleVT()) != ExpandableTypes.end();
----------------
jmmartinez wrote:

Is this the same as `llvm::is_contained(ExpandableTypes, VT.getSimpleVT())` ?

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


More information about the llvm-commits mailing list