[PATCH] Peephole optimization causes different code generation at "-O2 -g" and "-O2".
Katya Romanova
Katya_Romanova at playstation.sony.com
Thu Feb 27 20:10:53 PST 2014
Attached is the updated patch that addresses the issues raised:
- refactor the code that undefs DBG_VALUE into a function
-- the implementation is in MachineRegisterInfo
-- I could not see any other reasonably obvious place to add it
- remove unnecessary debug info from test cases
- improve comments
http://llvm-reviews.chandlerc.com/D2728
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D2728?vs=7097&id=7414#toc
Files:
llvm/include/llvm/CodeGen/MachineRegisterInfo.h
llvm/lib/CodeGen/PeepholeOptimizer.cpp
llvm/lib/CodeGen/MachineRegisterInfo.cpp
llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
llvm/test/CodeGen/X86/dbg-changes-codegen-1.ll
llvm/test/CodeGen/X86/dbg-changes-codegen-2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2728.4.patch
Type: text/x-patch
Size: 10433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140227/b990dfb4/attachment.bin>
More information about the llvm-commits
mailing list