/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/lit-tests/simplifyCFG.ispc
23 строки
716 B
Dmitry Babokin
Take into account new range<> return value attribute
25 июн 2024, 13:38
25 июн 2024, 13:38
4c641b1
Код
Авторство
О чём код?
// This test checks if instruction hoisting happens with CFGSimplificationPass. // This is verified by checking for all_on/some_on basic blocks in test_cond_uni. // These blocks will be optimized away if hoisting happens. //; RUN: %{ispc} %s --target=host --emit-llvm-text -O2 --nowrap -o - | FileCheck %s void foo(uniform int &arg0, uniform int &arg1) { if (arg0 < arg1) { uniform int temp = arg1; arg1 = arg0; arg0 = temp; } } //; CHECK: define {{.*}} @test_cond__uni___uniuni //; CHECK-NOT: all_on //; CHECK-NOT: some_on uniform int test_cond__uni(uniform int arg0, uniform int arg1) { foo(arg0, arg1); if (arg0 > arg1) return 0; return 1; }