Add the br_icmp instruction.
This instruction behaves like icmp fused with brnz, and it can be used to represent fused compare+branch instruction on Intel when optimizing for macro-op fusion. RISC-V provides compare-and-branch instructions directly, and it is needed there too.
This commit is contained in:
@@ -218,11 +218,9 @@ impl<'a> Verifier<'a> {
|
||||
&MultiAry { ref args, .. } => {
|
||||
self.verify_value_list(inst, args)?;
|
||||
}
|
||||
&Jump { destination, ref args, .. } => {
|
||||
self.verify_ebb(inst, destination)?;
|
||||
self.verify_value_list(inst, args)?;
|
||||
}
|
||||
&Branch { destination, ref args, .. } => {
|
||||
&Jump { destination, ref args, .. } |
|
||||
&Branch { destination, ref args, .. } |
|
||||
&BranchIcmp { destination, ref args, .. } => {
|
||||
self.verify_ebb(inst, destination)?;
|
||||
self.verify_value_list(inst, args)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user