summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-05-08 20:46:54 +0000
committerPete Cooper <peter_cooper@apple.com>2015-05-08 20:46:54 +0000
commite4bb07ecffa63dec04c01b86723b3828bf40e657 (patch)
treee4a684a33ea090f8196106a3f48e3d8a1474578a /clang/lib/CodeGen/CodeGenAction.cpp
parentbece8edcdde53f9854a7edfc27890333281541cc (diff)
downloadbcm5719-llvm-e4bb07ecffa63dec04c01b86723b3828bf40e657.tar.gz
bcm5719-llvm-e4bb07ecffa63dec04c01b86723b3828bf40e657.zip
[Fast-ISel] Clear kill flags on registers replaced by updateValueMap.
When selecting an extract instruction, we don't actually generate code but instead work out which register we are reading, and rewrite uses of the extract def to the source register. This is done via updateValueMap,. However, its possible that the source register we are rewriting *to* to also have uses. If those uses are after a kill of the value we are rewriting *from* then we have uses after a kill and the verifier fails. This code checks for the case where the to register is also used, and if so it clears all kill on the from register. This is conservative, but better that always clearing kills on the from register. llvm-svn: 236897
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud