Displaying 1 result from an estimated 1 matches for "64e66f32".
2019 Apr 07
2
GVN-Hoist test case not working
Hello,
I was trying a basic example on LLVM GVN Hoist and output differs from what
I expect. Am I missing something ?
*Code* :
int main()
{
int x = 7;
int a = 0;
if(a == 7){
x = 1;
a = 8 * x;
} else {
x = 1;
a = 2 * x;
}
return 0;
}
*Commands* :
clang-8 -O0 -S -emit-llvm test.c
opt-8 -gvn-hoist -S < test.ll
*Output :*
; ModuleID = '<stdin>'
source_filename =