diff options
| author | Owen Anderson <resistor@mac.com> | 2008-09-11 19:44:55 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-09-11 19:44:55 +0000 |
| commit | 453564bfba59515d6d980e1ee3321b36e658a2b7 (patch) | |
| tree | ce0a357bd7f805b189ba1542b92596c6fd14d68f /llvm/lib | |
| parent | 0a6d01770f422261abbdd34b0ba94eb1ae1682ab (diff) | |
| download | bcm5719-llvm-453564bfba59515d6d980e1ee3321b36e658a2b7.tar.gz bcm5719-llvm-453564bfba59515d6d980e1ee3321b36e658a2b7.zip | |
Fix a bug in ANY_EXTEND handling that was breaking 403.gcc on X86-64 in fast isel.
llvm-svn: 56117
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 981f5a7d7ee..63444ca7e25 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -271,8 +271,13 @@ X86FastISel::X86FastEmitStore(MVT VT, unsigned Val, bool X86FastISel::X86FastEmitExtend(ISD::NodeType Opc, MVT DstVT, unsigned Src, MVT SrcVT, unsigned &ResultReg) { - ResultReg = FastEmit_r(SrcVT.getSimpleVT(), DstVT.getSimpleVT(), Opc, Src); - return ResultReg != 0; + unsigned RR = FastEmit_r(SrcVT.getSimpleVT(), DstVT.getSimpleVT(), Opc, Src); + + if (RR != 0) { + ResultReg = RR; + return true; + } else + return false; } /// X86SelectConstAddr - Select and emit code to materialize constant address. |

