llvm-project/llvm/test/Transforms/Util
Vedant Kumar 9d1827331f [Util] Refer to [s|z]exts of args when converting dbg.declares (fix PR35400)
When converting dbg.declares, if the described value is a [s|z]ext,
refer to the ext directly instead of referring to its operand.

This fixes a narrowing bug (the debugger got the sign of a variable
wrong, see llvm.org/PR35400).

The main reason to refer to the ext's operand was that an optimization
may remove the ext itself, leading to a dropped variable. Now that
InstCombine has been taught to use replaceAllDbgUsesWith (r336451), this
is less of a concern. Other passes can/should adopt this API as needed
to fix dropped variable bugs.

Differential Revision: https://reviews.llvm.org/D51813

llvm-svn: 349214
2018-12-15 00:03:33 +00:00
..
PredicateInfo [PredicateInfo] Use custom mangling to support ssa_copy with unnamed types. 2018-07-24 14:49:52 +00:00
PR37334-break-crit-edges-require-dt.ll Require DominatorTree when requiring/preserving LoopInfo in the old pass manager 2018-05-17 09:05:40 +00:00
call-promotion-utils-ptrcast-attribute.ll [ICP] Remove incompatible attributes at indirect-call promoted callsites. 2018-11-26 22:03:52 +00:00
call-promotion-utils-ptrcast.ll Relax trivial cast requirements in CallPromotionUtils 2018-10-10 16:35:47 +00:00
clone-dicompileunit.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
combine-alias-scope-metadata.ll
dbg-user-of-aext.ll [Util] Refer to [s|z]exts of args when converting dbg.declares (fix PR35400) 2018-12-15 00:03:33 +00:00
flattencfg.ll
libcalls-fast-math-inf-loop.ll
libcalls-opt-remarks.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
libcalls-shrinkwrap-double.ll
libcalls-shrinkwrap-float.ll
libcalls-shrinkwrap-long-double.ll
lowerinvoke-funclet.ll
lowerswitch.ll [LowerSwitch] Fixed faulty PHI nodes 2018-07-10 12:06:16 +00:00
simplify-dbg-declare-load.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
store-first-op.ll
strip-gc-relocates.ll
strip-nonlinetable-debuginfo-containingtypes.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
strip-nonlinetable-debuginfo-cus.ll
strip-nonlinetable-debuginfo-localvars.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
strip-nonlinetable-debuginfo-loops.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
strip-nonlinetable-debuginfo-subroutinetypes.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00