[PATCH] D111675: [instcombine] propagate freeze through single use poison producing flag instruction

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 13:32:07 PDT 2021


nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.

LGTM apart from the requested test.



================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:3574
   if (!MaybePoisonOperand)
     return OrigOp;
 
----------------
I'm missing a test for this case (i.e. freeze eliminated completely after dropping flags).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111675/new/

https://reviews.llvm.org/D111675



More information about the llvm-commits mailing list