mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
Fix to make the CBE always emit comparisons inline. Hopefully this will
fix the really bad code we're getting on PPC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ceabd97423
commit
433e25a920
@ -126,6 +126,10 @@ namespace {
|
||||
// printed and an extra copy of the expr is not emitted.
|
||||
//
|
||||
static bool isInlinableInst(const Instruction &I) {
|
||||
// Always inline setcc instructions, even if they are shared by multiple
|
||||
// expressions. GCC generates horrible code if we don't.
|
||||
if (isa<SetCondInst>(I)) return true;
|
||||
|
||||
// Must be an expression, must be used exactly once. If it is dead, we
|
||||
// emit it inline where it would go.
|
||||
if (I.getType() == Type::VoidTy || !I.hasOneUse() ||
|
||||
|
@ -126,6 +126,10 @@ namespace {
|
||||
// printed and an extra copy of the expr is not emitted.
|
||||
//
|
||||
static bool isInlinableInst(const Instruction &I) {
|
||||
// Always inline setcc instructions, even if they are shared by multiple
|
||||
// expressions. GCC generates horrible code if we don't.
|
||||
if (isa<SetCondInst>(I)) return true;
|
||||
|
||||
// Must be an expression, must be used exactly once. If it is dead, we
|
||||
// emit it inline where it would go.
|
||||
if (I.getType() == Type::VoidTy || !I.hasOneUse() ||
|
||||
|
Loading…
Reference in New Issue
Block a user