shchenz added a comment. Since the code change is target independent, better to add a IR test case in `llvm/test/Transforms/HardwareLoops/`? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D78502/new/ https://reviews.llvm.org/D78502