Upgrade TypePromotionTransaction to be able to report changes in CodeGenPrepare
authorserge-sans-paille <sguelton@redhat.com>
Tue, 23 Jun 2020 13:44:29 +0000 (15:44 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Wed, 8 Jul 2020 06:35:44 +0000 (08:35 +0200)
commitedc7da24057b22896dc6522d3f98ccdd75a4e7f8
tree95b6534eee73a8a0fe30d53baba57a389ed0adc9
parentf54d0e36be6a4d5dab67244e85b8664282dcf5d1
Upgrade TypePromotionTransaction to be able to report changes in CodeGenPrepare

optimizeMemoryInst was reporting no change while still modifying the IR.
Inspect the status of TypePromotionTransaction to get a better status.

Related to https://reviews.llvm.org/D80916

Differential Revision: https://reviews.llvm.org/D81256
llvm/lib/CodeGen/CodeGenPrepare.cpp