Clean up assume intrinsic pattern matching, no need to check that the argument is a value.

Also make it const safe and remove superfluous casting. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2014-10-25 18:09:01 +00:00
parent 5c50ab84b3
commit 05b492db56
3 changed files with 11 additions and 15 deletions

View File

@@ -86,7 +86,7 @@ public:
Worklist.Add(I);
using namespace llvm::PatternMatch;
if ((match(I, m_Intrinsic<Intrinsic::assume>(m_Value()))))
if (match(I, m_Intrinsic<Intrinsic::assume>()))
AT->registerAssumption(cast<CallInst>(I));
}
};