summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBrendon Cahoon <bcahoon@codeaurora.org>2018-10-27 00:50:29 +0000
committerBrendon Cahoon <bcahoon@codeaurora.org>2018-10-27 00:50:29 +0000
commitaa783dfd6eaed43935fdb6f027edaca05cb8c239 (patch)
tree656571e1c5badd295b91779bb29c510ba251ef91 /llvm/lib
parentb342446fe023cdec3e6ae002cfb2b203d6b9b3f5 (diff)
downloadbcm5719-llvm-aa783dfd6eaed43935fdb6f027edaca05cb8c239.tar.gz
bcm5719-llvm-aa783dfd6eaed43935fdb6f027edaca05cb8c239.zip
[Hexagon] Add missing assignment to Itinerary in Call_nr
The class definition for Call_nr has the itinerary as a parameter, but the value is never assigned to the Itinerary field for the instruction. This means the compiler is unable to schedule and packetize the instruction correctly because these instrution will not have any resource descritions. I don't have a specific test case, but the ps_call_nr.ll test failed with a proposed patch. llvm-svn: 345442
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonPseudo.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonPseudo.td b/llvm/lib/Target/Hexagon/HexagonPseudo.td
index fd7466349ec..6935e3b7beb 100644
--- a/llvm/lib/Target/Hexagon/HexagonPseudo.td
+++ b/llvm/lib/Target/Hexagon/HexagonPseudo.td
@@ -208,6 +208,7 @@ class Call_nr<bits<5> nbits, bit isPred, bit isFalse, dag iops,
let isPredicable = 0; // !if(isPred, 0, 1);
let isPredicated = 0; // isPred;
let isPredicatedFalse = isFalse;
+ let Itinerary = itin;
}
def PS_call_nr : Call_nr<24, 0, 0, (ins s32_0Imm:$Ii), J2_call.Itinerary>;
OpenPOWER on IntegriCloud