[PATCH] D80077: [LiveVariables] Don't set undef reg PHI used as live for FromMBB

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 01:03:18 PDT 2020


lkail added a comment.

> If you use below command you can also get the error.
> 
>   llc -verify-machineinstrs -mtriple=aarch64-linux-gnu -verify-machineinstrs PHIElimination-crash.mir    -run-pass=livevars,phi-node-elimination,phi-node-elimination -no-phi-elim-live-out-early-exit=1 -phi-elim-split-all-critical-edges=1 -o runpass-phi-node-elimination.mir
> 
> 
> If the last pass is `machineverifier` pass, the LiveVariables will not be preserved, so the last `machineverifier` pass won't get the LiveVariables and it doesn't check LiveVariables. 
>  Above command run `phi-node-elimination ` pass twice.

Thanks for correcting my mistake.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80077





More information about the llvm-commits mailing list