mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Undo previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -168,9 +168,7 @@ static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) {
|
|||||||
|
|
||||||
// TODO: Handle: br (VARIANT|INVARIANT).
|
// TODO: Handle: br (VARIANT|INVARIANT).
|
||||||
// TODO: Hoist simple expressions out of loops.
|
// TODO: Hoist simple expressions out of loops.
|
||||||
if (Instruction *I = dyn_cast<Instruction>(Cond))
|
if (L->isLoopInvariant(Cond)) return Cond;
|
||||||
if (!L->contains(I->getParent()))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond))
|
if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond))
|
||||||
if (BO->getOpcode() == Instruction::And ||
|
if (BO->getOpcode() == Instruction::And ||
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: llvm-as < %s | opt -loop-unswitch -stats | not grep loop-unswitch
|
; RUN: llvm-as < %s | opt -loop-unswitch -verify -disable-output
|
||||||
|
|
||||||
|
|
||||||
define void @test_fc_while_continue_or(float %x, float %y, float* %result) nounwind {
|
define void @test_fc_while_continue_or(float %x, float %y, float* %result) nounwind {
|
||||||
|
Reference in New Issue
Block a user