llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[debugify] globalopt fail

Open gregbedwell opened this issue 8 years ago • 2 comments

Bugzilla Link 37959
Resolution FIXED
Resolved on Oct 23, 2018 09:36
Version trunk
OS Windows NT
Blocks llvm/llvm-project#37301
Attachments ll reproducer
CC @rupprecht,@vedantk

Extended Description

$ clang -v clang version 7.0.0 (trunk 335708) (llvm/trunk 335721) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: e:\work\upstream-llvm\build-vs2015-native-ninja\bin

$ cat global_variable_optimizer.cpp static int foo; int bar() { foo = 5; return foo; }

$ clang global_variable_optimizer.cpp -O0 -Xclang -disable-O0-optnone -S -emit-llvm -o globalopt-input.ll

$ opt globalopt-input.ll -disable-output -debugify-each -globalopt ERROR: Instruction with empty DebugLoc in function ?bar@@YAHXZ -- store i1 true, i1* @​foo ERROR: Instruction with empty DebugLoc in function ?bar@@YAHXZ -- %.b = load i1, i1* @​foo ERROR: Instruction with empty DebugLoc in function ?bar@@YAHXZ -- %0 = select i1 %.b, i32 5, i32 0 WARNING: Missing line 1 WARNING: Missing line 2 CheckModuleDebugify [Global Variable Optimizer]: FAIL CheckFunctionDebugify [Module Verifier]: PASS

$

gregbedwell avatar Jun 27 '18 14:06 gregbedwell

https://reviews.llvm.org/D53531

rupprecht avatar Oct 22 '18 22:10 rupprecht

assigned to @rupprecht

gregbedwell avatar Jun 27 '18 14:06 gregbedwell