[all-commits] [llvm/llvm-project] e94372: [SimplifyCFG] avoid sinking insts within an infini...

RotateRight via All-commits all-commits at lists.llvm.org
Mon Mar 29 12:10:51 PDT 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e94372d1b395a6461e7d973917b3a3c29563a5e6
      https://github.com/llvm/llvm-project/commit/e94372d1b395a6461e7d973917b3a3c29563a5e6
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    A llvm/test/Transforms/SimplifyCFG/sink-inf-loop.ll

  Log Message:
  -----------
  [SimplifyCFG] avoid sinking insts within an infinite-loop

The test is reduced from a C source example in:
https://llvm.org/PR49541

It's possible that the test could be reduced further or
the predicate generalized further, but it seems to require
a few ingredients (including the "late" SimplifyCFG options
on the RUN line) to fall into the infinite-loop trap.

(cherry picked from commit bd197ed0a57a82187ed3c6265ca811d412acfaef)




More information about the All-commits mailing list