mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
Revert the previous commit. Go ahead and hoist rematerializable instructions.
llvm-svn: 50990
This commit is contained in:
parent
11c0772a30
commit
f3c4b7fbb5
@ -297,10 +297,6 @@ bool MachineLICM::IsLoopInvariantInst(MachineInstr &I) {
|
||||
void MachineLICM::Hoist(MachineInstr &MI) {
|
||||
if (!IsLoopInvariantInst(MI)) return;
|
||||
|
||||
// Hoisting things that are trivially rematerializable may result in worse
|
||||
// code than before.
|
||||
if (TII->isTriviallyReMaterializable(&MI)) return;
|
||||
|
||||
std::vector<MachineBasicBlock*> Preds;
|
||||
|
||||
// Non-back-edge predecessors.
|
||||
|
Loading…
Reference in New Issue
Block a user