mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
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:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user