mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
remove some particularly expensive assertions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30014 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
238416c99b
commit
5d9b6f2823
@ -132,19 +132,19 @@ namespace llvm {
|
||||
/// getInstForValNum - Return the machine instruction index that defines the
|
||||
/// specified value number.
|
||||
unsigned getInstForValNum(unsigned ValNo) const {
|
||||
assert(ValNo < ValueNumberInfo.size());
|
||||
//assert(ValNo < ValueNumberInfo.size());
|
||||
return ValueNumberInfo[ValNo].first;
|
||||
}
|
||||
|
||||
unsigned getSrcRegForValNum(unsigned ValNo) const {
|
||||
assert(ValNo < ValueNumberInfo.size());
|
||||
//assert(ValNo < ValueNumberInfo.size());
|
||||
if (ValueNumberInfo[ValNo].first < ~2U)
|
||||
return ValueNumberInfo[ValNo].second;
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::pair<unsigned, unsigned> getValNumInfo(unsigned ValNo) const {
|
||||
assert(ValNo < ValueNumberInfo.size());
|
||||
//assert(ValNo < ValueNumberInfo.size());
|
||||
return ValueNumberInfo[ValNo];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user