diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-20 20:25:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-20 20:25:50 +0000 |
commit | 433e25a9201a4102adc44b7525382886ddc56417 (patch) | |
tree | dcf57dbd13e571bb50a1d11cce2398397fd35aac /lib/Target/CBackend/CBackend.cpp | |
parent | ceabd97423f8431f8215f180e21722fc3d221a35 (diff) |
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
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index ae3ba80940..6e536f0729 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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() || |