[PATCH] D27907: InstCombine: Add fma with constant transforms

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 18 17:29:25 PST 2016


majnemer added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:1564
+    // Canonicalize constants into the RHS.
+    if (match(Src0, m_Constant()) && !match(Src1, m_Constant())) {
+      II->setArgOperand(0, Src1);
----------------
I'd just use `isa` here.


https://reviews.llvm.org/D27907





More information about the llvm-commits mailing list