aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-08-25 23:58:48 +0000
committerReid Kleckner <reid@kleckner.net>2014-08-25 23:58:48 +0000
commite6e88f99b35f2fde5008e36f0d93f5231564b7d8 (patch)
tree96c5d1a42c544a0e1613d2b03508b1ad747c7849 /llvm/lib/CodeGen/LiveVariables.cpp
parent7b967f147714c2d0fa573b9de48f131cb5559551 (diff)
downloadllvm-e6e88f99b35f2fde5008e36f0d93f5231564b7d8.zip
llvm-e6e88f99b35f2fde5008e36f0d93f5231564b7d8.tar.gz
llvm-e6e88f99b35f2fde5008e36f0d93f5231564b7d8.tar.bz2
ArgPromotion: Don't touch variadic functions
Adding, removing, or changing non-pack parameters can change the ABI classification of pack parameters. Clang and other frontends encode the classification in the IR of the call site, but the callee side determines it dynamically based on the number of registers consumed so far. Changing the prototype affects the number of registers consumed would break such code. Dead argument elimination performs a similar task and already has a similar check to avoid this problem. Patch by Thomas Jablin! llvm-svn: 216421
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions