OSDN Git Service

[DEBUGINFO] Prevent Instcombine from dropping debuginfo when removing zexts
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Mon, 15 Apr 2019 17:36:29 +0000 (17:36 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Mon, 15 Apr 2019 17:36:29 +0000 (17:36 +0000)
commit04f57483979827c5a61b09394022339bff610099
tree5b1b52ccb221ef55b4e532601f90980e3774142e
parentb575b771c7b756d510c52251869418e96926d2d4
[DEBUGINFO] Prevent Instcombine from dropping debuginfo when removing zexts

Zexts can be treated like no-op casts when it comes to assessing whether their
removal affects debug info.

Reviewer: aprantl

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358431 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
test/Transforms/InstCombine/cast-mul-select.ll