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

RotateRight via All-commits all-commits at lists.llvm.org
Fri Mar 12 05:06:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd197ed0a57a82187ed3c6265ca811d412acfaef
      https://github.com/llvm/llvm-project/commit/bd197ed0a57a82187ed3c6265ca811d412acfaef
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-03-12 (Fri, 12 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.




More information about the All-commits mailing list