[all-commits] [llvm/llvm-project] bfa2c4: [VE] Change displacement type in MEM..i from i32 t...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Thu Jul 7 09:34:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfa2c4200179fbf11f05cc9c2944da4257d668db
      https://github.com/llvm/llvm-project/commit/bfa2c4200179fbf11f05cc9c2944da4257d668db
  Author: Krzysztof Parzyszek <kparzysz at quicinc.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M llvm/lib/Target/VE/VEInstrInfo.td

  Log Message:
  -----------
  [VE] Change displacement type in MEM..i from i32 to i64

In selection patterns, addresses (like tblockaddr) are passed as the
displacement (the i in MEM..i) to instructions taking MEM operands.
Since addresses are 64-bit, having this part of the MEM..i operand as
i32 causes a type inference error. The instructions actually only encode
32 bits of the displacement, but there is no way to manually extract
these bits (either the high or the low half) in selection patterns.

This didn't happen before, because of a bug in type inference when
dealing with iPTR.




More information about the All-commits mailing list