mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
Build LLVM deprecated getFirstNonPHI
This commit is contained in:
parent
656491e687
commit
0f9244b6e8
|
|
@ -71,7 +71,7 @@ cpu_translator::cpu_translator(llvm::Module* _module, bool is_be)
|
||||||
result = m_ir->CreateInsertElement(v, m_ir->CreateExtractElement(data0, m_ir->CreateExtractElement(mask, i)), i);
|
result = m_ir->CreateInsertElement(v, m_ir->CreateExtractElement(data0, m_ir->CreateExtractElement(mask, i)), i);
|
||||||
v->addIncoming(result, loop);
|
v->addIncoming(result, loop);
|
||||||
m_ir->CreateCondBr(m_ir->CreateICmpULT(i, m_ir->getInt32(16)), loop, next);
|
m_ir->CreateCondBr(m_ir->CreateICmpULT(i, m_ir->getInt32(16)), loop, next);
|
||||||
m_ir->SetInsertPoint(next->getFirstNonPHI());
|
m_ir->SetInsertPoint(next->getFirstNonPHIIt());
|
||||||
result = m_ir->CreateSelect(m_ir->CreateICmpSLT(index, zeros), zeros, result);
|
result = m_ir->CreateSelect(m_ir->CreateICmpSLT(index, zeros), zeros, result);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
|
|
@ -2617,7 +2617,7 @@ public:
|
||||||
{
|
{
|
||||||
if (b2 != bqbi)
|
if (b2 != bqbi)
|
||||||
{
|
{
|
||||||
auto ins = b2->block->getFirstNonPHI();
|
auto ins = b2->block->getFirstNonPHIIt();
|
||||||
|
|
||||||
if (b2->bb->preds.size() == 1)
|
if (b2->bb->preds.size() == 1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue