Commit 5d4efa79 by Richard Sandiford Committed by Richard Sandiford

[arm] Fix insn type of *thumb1_tablejump

*thumb1_tablejump had type "no_insn", which doesn't seems to correspond
to its documented use:

  an insn which does not represent an instruction in the final output,
  thus having no impact on scheduling.

Indirect jumps use the same instruction and have type "branch",
so the patch uses "branch" here too.

2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
	* config/arm/thumb1.md (*thumb1_tablejump): Change type from
	"no_insn" to "branch".

From-SVN: r275806
parent 7dbc2e3b
2019-09-17 Richard Sandiford <richard.sandiford@arm.com> 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
* config/arm/thumb1.md (*thumb1_tablejump): Change type from
"no_insn" to "branch".
2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
* array-traits.h (array_traits<T[N]>::size): Remove parameter name. * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
2019-09-17 Richard Biener <rguenther@suse.de> 2019-09-17 Richard Biener <rguenther@suse.de>
......
...@@ -1944,7 +1944,7 @@ ...@@ -1944,7 +1944,7 @@
"TARGET_THUMB1" "TARGET_THUMB1"
"mov\\t%|pc, %0" "mov\\t%|pc, %0"
[(set_attr "length" "2") [(set_attr "length" "2")
(set_attr "type" "no_insn")] (set_attr "type" "branch")]
) )
(define_insn_and_split "thumb_eh_return" (define_insn_and_split "thumb_eh_return"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment