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

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 18 18:48:24 PST 2016

majnemer added inline comments.

Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:1564
+    // Canonicalize constants into the RHS.
+    if (match(Src0, m_Constant()) && !isa<Constant>(Src1)) {
+      II->setArgOperand(0, Src1);
I think you could also use `isa` for `Src0`.


More information about the llvm-commits mailing list