[PATCH] D79537: Add NoMerge MIFlag to avoid MIR branch folding
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 18 17:22:21 PDT 2020
MaskRay added inline comments.
================
Comment at: llvm/test/CodeGen/PowerPC/nomerge.ll:31
+; CHECK: # %bb.2: # %if.then
+; CHECK: bl bar
+; CHECK: .LBB0_3: # %if.then2
----------------
Change the three `CHECK: bl bar` to `CHECK-NEXT: bl bar`
It makes the reader clear they are first instructions in their basic blocks and there will be a friendly error message if things go wrong.
```
; CHECK: # %if.then2
; CHECK-NEXT: bl bar
```
================
Comment at: llvm/test/CodeGen/RISCV/nomerge.ll:31
+; CHECK: # %bb.2: # %if.then
+; CHECK: call bar
+; CHECK: .LBB0_3: # %if.then2
----------------
ditto
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79537/new/
https://reviews.llvm.org/D79537
More information about the llvm-commits
mailing list