[llvm] r315019 - [Hexagon] Make PS_fi and PS_fia extendable (they both expand to A2_addi)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 13:20:06 PDT 2017
Author: kparzysz
Date: Thu Oct 5 13:20:06 2017
New Revision: 315019
URL: http://llvm.org/viewvc/llvm-project?rev=315019&view=rev
Log:
[Hexagon] Make PS_fi and PS_fia extendable (they both expand to A2_addi)
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonPseudo.td
Modified: llvm/trunk/lib/Target/Hexagon/HexagonPseudo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonPseudo.td?rev=315019&r1=315018&r2=315019&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonPseudo.td (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonPseudo.td Thu Oct 5 13:20:06 2017
@@ -247,11 +247,14 @@ def PS_aligna : Pseudo<(outs IntRegs:$Rd
// This simplifies the frame-index elimination code.
//
let isMoveImm = 1, isAsCheapAsAMove = 1, isReMaterializable = 1,
- isPseudo = 1, isCodeGenOnly = 1, hasSideEffects = 0 in {
+ isPseudo = 1, isCodeGenOnly = 1, hasSideEffects = 0, isExtendable = 1,
+ isExtentSigned = 1, opExtentBits = 16, opExtentAlign = 0 in {
+ let opExtendable = 2 in
def PS_fi : Pseudo<(outs IntRegs:$Rd),
- (ins IntRegs:$fi, s32_0Imm:$off), "">;
+ (ins IntRegs:$fi, s32_0Imm:$off), "">;
+ let opExtendable = 3 in
def PS_fia : Pseudo<(outs IntRegs:$Rd),
- (ins IntRegs:$Rs, IntRegs:$fi, s32_0Imm:$off), "">;
+ (ins IntRegs:$Rs, IntRegs:$fi, s32_0Imm:$off), "">;
}
class CondStr<string CReg, bit True, bit New> {
More information about the llvm-commits
mailing list