OSDN Git Service

Fixed isReMaterializable setting for LUI instruction.
authorAna Pazos <apazos@codeaurora.org>
Tue, 22 Jan 2019 22:59:47 +0000 (22:59 +0000)
committerAna Pazos <apazos@codeaurora.org>
Tue, 22 Jan 2019 22:59:47 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351895 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/RISCV/RISCVInstrInfo.td

index 3d8a1a3..787ddf1 100644 (file)
@@ -311,7 +311,8 @@ class Priv<string opcodestr, bits<7> funct7>
 // Instructions
 //===----------------------------------------------------------------------===//
 
-let hasSideEffects = 0, isReMaterializable = 1, mayLoad = 0, mayStore = 0 in {
+let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in {
+let isReMaterializable = 1 in
 def LUI : RVInstU<OPC_LUI, (outs GPR:$rd), (ins uimm20_lui:$imm20),
                   "lui", "$rd, $imm20">;