diff options
| author | Fangrui Song <maskray@google.com> | 2020-01-18 22:36:33 -0800 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2020-01-24 10:38:39 -0800 |
| commit | 50627622856e631bd522cefd84efe2c8070ef75e (patch) | |
| tree | f83d27644cd2edde7e323ecc7fb3752e46b692a1 /llvm | |
| parent | 39c349e8fc7f4b334cf4b30724b28dfce44a024e (diff) | |
| download | bcm5719-llvm-50627622856e631bd522cefd84efe2c8070ef75e.tar.gz bcm5719-llvm-50627622856e631bd522cefd84efe2c8070ef75e.zip | |
[XRay] Set hasSideEffects flag of PATCHABLE_FUNCTION_{ENTER,EXIT}
Otherwise they may be picked as the delay slot by mips-delay-slot-filler, if we move patchable-function before mips-delay-slot-filler.
(cherry picked from commit a72d15e37c5e066f597f13a8ba60aff214ac992d)
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Target/Target.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/Target.td b/llvm/include/llvm/Target/Target.td index b122b51bb16..cdc9b640e74 100644 --- a/llvm/include/llvm/Target/Target.td +++ b/llvm/include/llvm/Target/Target.td @@ -1182,7 +1182,7 @@ def PATCHABLE_FUNCTION_ENTER : StandardPseudoInstruction { let InOperandList = (ins); let AsmString = "# XRay Function Enter."; let usesCustomInserter = 1; - let hasSideEffects = 0; + let hasSideEffects = 1; } def PATCHABLE_RET : StandardPseudoInstruction { let OutOperandList = (outs); @@ -1198,7 +1198,7 @@ def PATCHABLE_FUNCTION_EXIT : StandardPseudoInstruction { let InOperandList = (ins); let AsmString = "# XRay Function Exit."; let usesCustomInserter = 1; - let hasSideEffects = 0; // FIXME: is this correct? + let hasSideEffects = 1; let isReturn = 0; // Original return instruction will follow } def PATCHABLE_TAIL_CALL : StandardPseudoInstruction { |

