PowerPC varargs functions store live-in registers on the stack. Make sure we use
commitab1cd61fab1592c66f5957c6b342940c1382b6ec
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Oct 2010 20:43:09 +0000 (11 20:43 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Oct 2010 20:43:09 +0000 (11 20:43 +0000)
treecc4a0e44ee9a45fdafd3a0e60a317b1f010606c0
parent8480a5d4505148aeedec17a21843ee72dc70051d
PowerPC varargs functions store live-in registers on the stack. Make sure we use
virtual registers for those stores since RegAllocFast requires that each live
physreg only be used once.

This fixes PR8357.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/2010-10-11-Fast-Varargs.ll [new file with mode: 0644]