[PATCH] D140831: Fix a phase-ordering problem in SimplifyCFG.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 01:48:53 PST 2023


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

LG



================
Comment at: llvm/lib/Transforms/Utils/Local.cpp:243-244
+        // case, update CI and restart iteration through the cases.
+        ConstantInt* NewCI = dyn_cast<ConstantInt>(SI->getCondition());
+        if (NewCI) {
+          CI = NewCI;
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140831



More information about the llvm-commits mailing list