summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReader.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2015-04-23 21:17:39 +0000
committerQuentin Colombet <qcolombet@apple.com>2015-04-23 21:17:39 +0000
commit796d906e06f8f5a3c8d4f5f0faa5c47697153490 (patch)
tree91cbf0e3c4865d79254dadb6cf1347ae9ab7ff57 /clang/lib/Serialization/ASTReader.cpp
parented75e7aecea674529b2d4400ea19d9ca227e2979 (diff)
downloadbcm5719-llvm-796d906e06f8f5a3c8d4f5f0faa5c47697153490.tar.gz
bcm5719-llvm-796d906e06f8f5a3c8d4f5f0faa5c47697153490.zip
[MachineCopyPropagation] Handle undef flags conservatively so that we do not
remove copies that are useful after breaking some hardware dependencies. In other words, handle this kind of situations conservatively by assuming reg2 is redefined by the undef flag. reg1 = copy reg2 = inst reg2<undef> reg2 = copy reg1 Copy propagation used to remove the last copy. This is incorrect because the undef flag on reg2 in inst, allows next passes to put whatever trashed value in reg2 that may help. In practice we end up with this code: reg1 = copy reg2 reg2 = 0 = inst reg2<undef> reg2 = copy reg1 This fixes PR21743. llvm-svn: 235647
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud