summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-04-14 14:36:45 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-04-14 14:36:45 +0000
commitd4a1950500b3cbba719560c2d7b5c493d9fcf6f9 (patch)
treedb1a2e3e301a3c08502f347b8e9b7478d36db6e0 /clang/lib/CodeGen/CodeGenAction.cpp
parentc20e6d755d0b8afc8ace3dabddedd3d980a619a3 (diff)
downloadbcm5719-llvm-d4a1950500b3cbba719560c2d7b5c493d9fcf6f9.tar.gz
bcm5719-llvm-d4a1950500b3cbba719560c2d7b5c493d9fcf6f9.zip
R600/SI: Fix verifier error caused by SIAnnotateControlFlow
This pass will always try to insert llvm.SI.ifbreak intrinsics in the same block that its conditional value is computed in. This is a problem when conditions for breaks or continue are computed outside of the loop, because the llvm.SI.ifbreak intrinsic ends up being inserted outside of the loop. This patch fixes this problem by inserting the llvm.SI.ifbreak intrinsics in the loop header when the condition is computed outside the loop. llvm-svn: 234891
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud