summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUMachineModuleInfo.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-08-24 14:51:35 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-08-24 14:51:35 +0000
commitb795bfc0d4f117429c7f469b542ca6f3f0c1b819 (patch)
tree6d409a65cf093bef8cd70768595d902b63fe3ebb /llvm/lib/Target/AMDGPU/AMDGPUMachineModuleInfo.cpp
parentb0eb5fb317cbe831badc4da5843b1d526eff758a (diff)
downloadbcm5719-llvm-b795bfc0d4f117429c7f469b542ca6f3f0c1b819.tar.gz
bcm5719-llvm-b795bfc0d4f117429c7f469b542ca6f3f0c1b819.zip
[CodeGen] Detect impossible partial write conditions more reliably.
Whether a partial write is tautological/unsatisfiable not only depends on the access domain, but also on the domain covered by its node in the AST. In the example below, there are two instances of Stmt_cond_false. It may have a partial write access that is not executed in instance Stmt_cond_false(0). for (int c0 = 0; c0 < tmp5; c0 += 1) { Stmt_for_body344(c0); if (tmp5 >= c0 + 2) Stmt_cond_false(c0); Stmt_cond_end(c0); } if (tmp5 <= 0) { Stmt_for_body344(0); Stmt_cond_false(0); Stmt_cond_end(0); } Isl cannot derive a subscript for an array element that is never accessed. This caused an error in that no subscript expression has been generated in IslNodeBuilder::createNewAccesses, but BlockGenerator expected one to exist because there is an execution of that write, just not in that ast node. Fixed by instead of determining whether the access domain is empty, inspect whether isl generated a constant "false" ast expression in the current ast node. This should fix a compiler crash of the aosp buildbot. llvm-svn: 311663
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud