We can change the type as long as we don't change the size.
Fixes PR44306
| Paths 
 |  Differential  D71532  
[InstCombine] Teach removeBitcastsFromLoadStoreOnMinMax not to change the size of a store. ClosedPublic Authored by craig.topper on Dec 15 2019, 4:14 PM. 
Details Summary We can change the type as long as we don't change the size. Fixes PR44306 
Diff Detail 
 Event TimelineComment Actions Sounds good to me. 
 This revision is now accepted and ready to land.Dec 16 2019, 4:40 AM Closed by commit rG02f644c59ad0: [InstCombine] Teach removeBitcastsFromLoadStoreOnMinMax not to change the size… (authored by craig.topper).  ·  Explain WhyDec 16 2019, 12:16 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 234117 llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
 llvm/test/Transforms/InstCombine/PR37526.ll
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This was even noted here...