[PATCH] Invariant intrinsic canonicalization

hfinkel at anl.gov hfinkel at anl.gov
Fri Jul 25 14:54:24 PDT 2014

r213977, thanks!

Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:1004
@@ +1003,3 @@
+    if (match(IIOperand, m_And(m_Value(A), m_Value(B)))) {
+      Builder->CreateCall(II->getCalledValue(), A, II->getName());
+      Builder->CreateCall(II->getCalledValue(), B, II->getName());
Philip Reames wrote:
> Extracting out II->getCalledValue with a name like "AssumeIntrinsic" would make this code easier to understand on first glance.


More information about the llvm-commits mailing list