[llvm] [GISel] Add LookThroughInstrs for getIConstantVRegVal and getIConstan… (PR #68327)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 08:59:42 PDT 2023


================
@@ -301,7 +302,8 @@ std::optional<APInt> llvm::getIConstantVRegVal(Register VReg,
 }
 
 std::optional<int64_t>
-llvm::getIConstantVRegSExtVal(Register VReg, const MachineRegisterInfo &MRI) {
+llvm::getIConstantVRegSExtVal(Register VReg, const MachineRegisterInfo &MRI,
+                              bool LookThroughInstrs = false) {
----------------
tschuett wrote:

You should pass `LookThroughInstrs`to `getIConstantVRegVal`.

https://github.com/llvm/llvm-project/pull/68327


More information about the llvm-commits mailing list