[PATCH] D66338: [CGP] Drop llvm.assume calls
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 08:59:34 PDT 2019
xbolva00 added a comment.
Oh, this is funny (or nasty) bug
a.c
int foo(void) __attribute__((const));
int main(void) {
__builtin_assume(foo() == 1);
}
b.c
#include <stdio.h>
int foo(void) {
puts("BUM");
return 0;
}
clang -O3 a.c b.c -o bum
./bum
BUM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66338/new/
https://reviews.llvm.org/D66338
More information about the llvm-commits
mailing list