[llvm] [GISel] Add LookThroughInstrs for getIConstantVRegVal and getIConstan… (PR #68327)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 09:00:58 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) {
----------------
michaelmaitland wrote:
Yes, thats important!
https://github.com/llvm/llvm-project/pull/68327
More information about the llvm-commits
mailing list