[PATCH] D23896: [InstCombine] Try to resubmit the combine of A->B->A BitCast and fix for pr27996
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 10:26:08 PDT 2016
majnemer added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCasts.cpp:1896
+ Worklist.Add(SI);
+ assert(hasStoreUsersOnly(*cast<BitCastInst>(NewBC)));
+ }
----------------
I'd hoist this `cast<BitCastInst>` over to the call to `Builder->CreateBitCast`
https://reviews.llvm.org/D23896
More information about the llvm-commits
mailing list