OSDN Git Service

ScheduleDAGInstrs: Ignore dependencies of constant physregs
authorMatthias Braun <matze@braunis.de>
Thu, 10 Nov 2016 23:46:44 +0000 (23:46 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 10 Nov 2016 23:46:44 +0000 (23:46 +0000)
commit773603e8518bbe4b5ca937b563a982173691786e
treea8f5be4112b2fa1ff926512adb835f18fdae10d4
parenta46113773fdd10301ecbd76e7b250d586f94c92c
ScheduleDAGInstrs: Ignore dependencies of constant physregs

There is no need to track dependencies for constant physregs, as they
don't change their value no matter in what order you read/write to them.

Differential Revision: https://reviews.llvm.org/D26221

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286526 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ScheduleDAGInstrs.cpp
test/CodeGen/AArch64/machine_cse_impdef_killflags.ll
test/CodeGen/AArch64/scheduledag-constreg.mir [new file with mode: 0644]
test/CodeGen/AArch64/subs-to-sub-opt.ll